Skip to content
Prev Previous commit
Next Next commit
Fix test
  • Loading branch information
chkoar committed Feb 23, 2019
commit 02c3f1d85c1f048fcc5029ea3544af312072d154
4 changes: 3 additions & 1 deletion imblearn/ensemble/tests/test_weight_boosting.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ def test_balanced_random_forest_error(imbalanced_dataset, boosting_params,
@pytest.mark.parametrize('algorithm', ['SAMME', 'SAMME.R'])
def test_rusboost(imbalanced_dataset, algorithm):
X, y = imbalanced_dataset
X_train, X_test, y_train, y_test = train_test_split(X, y, stratify=y)
X_train, X_test, y_train, y_test = train_test_split(X, y,
stratify=y,
random_state=1)
classes = np.unique(y)

n_estimators = 500
Expand Down