Skip to content

Commit

Permalink
Revert changes in test_devnet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Vasilev committed Dec 24, 2024
1 parent 7b1cc4e commit 433815b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pyod/test/test_devnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,20 @@ def test_prediction_with_rejection_stats(self):
assert (ub_rejrate <= 1)
assert (ub_cost >= 0)

def test_fit_predict(self):
pred_labels = self.clf.fit_predict(self.X_train, self.y_train)
assert_equal(pred_labels.shape, self.y_train.shape)

def test_fit_predict_score(self):
self.clf.fit_predict_score(self.X_test, self.y_test)
self.clf.fit_predict_score(self.X_test, self.y_test,
scoring='roc_auc_score')
self.clf.fit_predict_score(self.X_test, self.y_test,
scoring='prc_n_score')
with assert_raises(NotImplementedError):
self.clf.fit_predict_score(self.X_test, self.y_test,
scoring='something')

def test_model_clone(self):
pass
# clone_clf = clone(self.clf)
Expand Down

0 comments on commit 433815b

Please sign in to comment.