Skip to content

Commit

Permalink
Update tests on IForest
Browse files Browse the repository at this point in the history
  • Loading branch information
FrizzoDavide committed Nov 3, 2023
1 parent 513995c commit 21cfa64
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pyod/test/test_iforest.py
Expand Up @@ -54,6 +54,13 @@ def test_parameters(self):
self.clf.estimators_samples_ is not None)
assert (hasattr(self.clf, 'max_samples_') and
self.clf.max_samples_ is not None)
assert (hasattr(self.clf, 'estimators_features_') and
self.clf.estimators_features_ is not None)
assert (hasattr(self.clf, 'n_features_in_') and
self.clf.n_features_in_ is not None)
assert (hasattr(self.clf, 'offset_') and
self.clf.offset_ is not None)


def test_train_scores(self):
assert_equal(len(self.clf.decision_scores_), self.X_train.shape[0])
Expand Down

0 comments on commit 21cfa64

Please sign in to comment.