Skip to content

Commit 0a6d830

Browse files
authored
Replace deprecated as_matrix() with to_numpy()
1 parent 7048644 commit 0a6d830

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

slice_finder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ def evaluate_model(self, data, metric=log_loss):
164164
X, y = copy.deepcopy(data[0]), copy.deepcopy(data[1])
165165
X['Label'] = y
166166
X = X.dropna()
167-
y = X['Label'].as_matrix()
168-
X = X.drop(['Label'], axis=1).as_matrix()
167+
y = X['Label'].to_numpy()
168+
X = X.drop(['Label'], axis=1).to_numpy()
169169

170170
y_p = self.model.predict_proba(X)
171171
y_p = list(map(functools.partial(np.expand_dims, axis=0), y_p))

0 commit comments

Comments
 (0)