8000 Add tol to silence warning · InterferencePattern/scikit-learn@4b143a4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b143a4

Browse files
committed
Add tol to silence warning
1 parent 22ca031 commit 4b143a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sklearn/tests/test_multioutput.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ def test_multi_target_sample_weights():
169169
# 0.23. warning about tol not having its correct default value.
170170
@pytest.mark.filterwarnings('ignore:max_iter and tol parameters have been')
171171
def test_multi_output_classification_partial_fit_parallelism():
172-
sgd_linear_clf = SGDClassifier(loss='log', random_state=1, max_iter=5)
172+
sgd_linear_clf = SGDClassifier(loss='log', random_state=1,
173+
max_iter=5, tol=1e-3)
173174
mor = MultiOutputClassifier(sgd_linear_clf, n_jobs=-1)
174175
mor.partial_fit(X, y, classes)
175176
est1 = mor.estimators_[0]

0 commit comments

Comments
 (0)
0