Skip to content

Commit 0b359d7

Browse files
StefanieSengerpunndcoder28
authored andcommitted
TST Adaboost: Fixed ValueError in test_multidimensional_X (scikit-learn#26829)
1 parent a8c83ff commit 0b359d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sklearn/ensemble/tests/test_weight_boosting.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,9 @@ def test_multidimensional_X():
475475
"""
476476
rng = np.random.RandomState(0)
477477

478-
X = rng.randn(50, 3, 3)
479-
yc = rng.choice([0, 1], 50)
480-
yr = rng.randn(50)
478+
X = rng.randn(51, 3, 3)
479+
yc = rng.choice([0, 1], 51)
480+
yr = rng.randn(51)
481481

482482
boost = AdaBoostClassifier(DummyClassifier(strategy="most_frequent"))
483483
boost.fit(X, yc)

0 commit comments

Comments
 (0)