Skip to content

Commit

Permalink
TST add random state
Browse files Browse the repository at this point in the history
  • Loading branch information
PSSF23 committed Jun 21, 2023
1 parent f172880 commit a31e1de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sktree/tests/test_honest_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def test_max_samples():
X[:50] *= -1
y = [0, 1] * 50
for ms in max_samples_list:
uf = HonestForestClassifier(n_estimators=2, max_samples=ms, bootstrap=True)
uf = HonestForestClassifier(n_estimators=2, random_state=0, max_samples=ms, bootstrap=True)
uf = uf.fit(X, y)
depths.append(uf.estimators_[0].get_depth())

Expand Down

0 comments on commit a31e1de

Please sign in to comment.