-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
FIX cross_validate
with multimetric scoring returns the non-failed scorers results if there is a failing scorer
#23101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
glemaitre
merged 26 commits into
scikit-learn:main
from
simonandras:cross_validate__with_multiple_scorer_nan_issue
Dec 28, 2022
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
d49b41c
Formatting
simonandras 82e6dc1
If all scorer fails, raise an error.
simonandras 056b40c
Update warning message.
simonandras 2aa8ac7
Update raised exception
simonandras 30363eb
Making the changes of the rewiev. TODO: update the tests and add new …
simonandras 5caba43
Update to a list.
simonandras e88cfde
Added formatted exception to the warnings. All the failing scorers me…
simonandras 69c61e8
Calling the function with positional arguments instead.
simonandras 01ccc1a
added test_multimetric_scorer_returning_exceptions_in_dictianary. TOD…
simonandras 218f5bd
Update test_cross_validate_failing_scorer to cover the failing and no…
simonandras 1ab52b2
Changing '2' to more explicit 'score_2' in the test_cross_validate_fa…
simonandras 3e066c6
_MultimetricScorer now can raise an exception in __call__ or not. Thi…
simonandras b56b585
Remove not used function from the imports.
simonandras ea793c9
Changing _MultimetricScorer API: now the 'scorers' parameter is a pos…
simonandras a6e05c7
Adding changelog.
simonandras 8100661
small changes to changelelog
simonandras 176d406
Changing the changelog again.
simonandras 84a0808
Merge branch 'main' into cross_validate__with_multiple_scorer_nan_issue
simonandras fd616b9
Changing the number in the changelogand a small change in the test_cr…
simonandras f7857ad
Correct doc.
simonandras 70c59e0
Changing changelog based on rewiev.
simonandras 03d33c8
Removing assertions from _validation.py and leaving comments instead.
simonandras 1f3e60b
Merge remote-tracking branch 'upstream/main' into cross_validate__wit…
simonandras 94fab7e
Merge branch 'main' into cross_validate__with_multiple_scorer_nan_issue
glemaitre 89cf53e
DOC move entry changelog
glemaitre 7be9ca1
Apply suggestions from code review
glemaitre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For future reviewers, a string is used to pass the information back to the caller.