Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4b143a4

Browse filesBrowse files
committed
Add tol to silence warning
1 parent 22ca031 commit 4b143a4
Copy full SHA for 4b143a4

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎sklearn/tests/test_multioutput.py

Copy file name to clipboardExpand all lines: sklearn/tests/test_multioutput.py
+2-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.