8000 MNT silence spurious FitFailedWarning in test_search_cv (#18833) · scikit-learn/scikit-learn@dc56167 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

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 dc56167

Browse files
ogriselthomasjpfan
andauthored
MNT silence spurious FitFailedWarning in test_search_cv (#18833)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
1 parent 983d1ee commit dc56167

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sklearn/tests/test_common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from sklearn.utils import all_estimators
2020
from sklearn.utils._testing import ignore_warnings
2121
from sklearn.exceptions import ConvergenceWarning
22+
from sklearn.exceptions import FitFailedWarning
2223
from sklearn.utils.estimator_checks import check_estimator
2324

2425
import sklearn
@@ -246,6 +247,7 @@ def test_search_cv(estimator, check, request):
246247
ConvergenceWarning,
247248
UserWarning,
248249
FutureWarning,
250+
FitFailedWarning,
249251
)
250252
):
251253
check(estimator)

0 commit comments

Comments
 (0)
0