Skip to content

Commit

Permalink
fix: update 822
Browse files Browse the repository at this point in the history
  • Loading branch information
terryyz committed Apr 26, 2024
1 parent 086b99c commit e99ae3f
Show file tree
Hide file tree
Showing 4 changed files with 572 additions and 572 deletions.
2 changes: 1 addition & 1 deletion data/clean/f_822_wenhao.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def test_case_1(self):
# Test basic case
array = np.array([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]])
target = np.array([0, 1])
clf = f_822(array, target)
clf = f_822(array, target, seed=42)
self.assertIsInstance(clf, RandomForestClassifier)
self.assertTrue(len(clf.feature_importances_) > 0)
self.assertEqual(set(np.unique(target)), set(clf.classes_))
Expand Down
Loading

0 comments on commit e99ae3f

Please sign in to comment.