-
-
Notifications
You must be signed in to change notification settings - Fork 26.1k
Fix RuntimeWarning: invalid value encountered in test_calibration.py #19421
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
jeremiedbb
merged 20 commits into
scikit-learn:main
from
t-kusanagi:fix_test_calibration
Feb 11, 2021
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
ef8fe52
Fix _CalibratedClassifier.predict_proba function
t-kusanagi 16a452c
Remove `zero` case of proba
t-kusanagi 4b0bc51
Make it more readable
t-kusanagi f55eabd
Add test_calibration_zero_probability for _CalibratedClassifier.predi…
t-kusanagi 2087b46
Remove debug code
t-kusanagi f06cc19
Rename FakeCalibrator to ZeroCalibrator
t-kusanagi dc10ab6
Fix comment
t-kusanagi f9c455d
Decrease n_samples and n_features
t-kusanagi d9a96de
Fix rename oversight
t-kusanagi e02555d
Use DummyClassifier instead of FakeClassifier
t-kusanagi f0f2ede
Add comment
t-kusanagi 0c56039
Clarify tha shape information
t-kusanagi 46c22b2
Remove redundant parts
t-kusanagi 61699ed
Fix comment
t-kusanagi ef74324
Fix comment
t-kusanagi 86f4423
Fix comment
t-kusanagi 1d54142
Remove n_classes
t-kusanagi 49afbc2
Use clf.classes_
t-kusanagi b4c9e36
Use clf.n_classes_ instead of n_classes
t-kusanagi 48a8172
Fix comment
t-kusanagi 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
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.
Uh oh!
There was an error while loading. Please reload this page.