-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
ENH Uses _validate_data in other methods in the neural_network module #18514
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
ogrisel
merged 21 commits into
scikit-learn:master
from
thomasjpfan:validate_data_in_other_methods
Oct 7, 2020
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
89ae918
ENH Enables validate_data for non-fit methods
thomasjpfan ba22dee
REV Less diffs
thomasjpfan e180abd
TST Improves test
thomasjpfan fd03030
TST Improves test
thomasjpfan c40d37e
DOC Adds docs
thomasjpfan f8ffd88
TST Update with more feature setting
thomasjpfan 18454c1
TST Fixes tests
thomasjpfan 0c2ea46
DOC Adds comment
thomasjpfan 907dce9
CLN Uses hasattr
thomasjpfan 8e8d11d
CLN Adds requires_y kwargs
thomasjpfan bd150f6
CLN Uses requires_y='use_tag'
thomasjpfan 1ed5421
DOC add check_classifiers_train to docs
thomasjpfan 54ddc43
Merge remote-tracking branch 'upstream/master' into validate_data_in_…
thomasjpfan 3735ba0
CLN Change signature of
thomasjpfan a865265
DOC Removes note
thomasjpfan 4ec2b62
CLN Fully removes requires_y
thomasjpfan 24636d4
DOC Improves docs
thomasjpfan e0e7fab
Merge remote-tracking branch 'upstream/master' into validate_data_in_…
thomasjpfan e397a74
CLN uses 'no_validation'
thomasjpfan 64b78fc
DOC Update docstring to no_validation
thomasjpfan c21e02d
FIX Check for string first
thomasjpfan 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.
Once all modules are supported, should this be merge with the already-existing
check_n_features_in
check?We also have another check that specifically checks for error when the number of features are inconsistent (I don't remember the name). Should this one be removed then? (If yes let's document it here and next to N_FEATURES_IN_AFTER_FIT_MODULES_TO_IGNORE please)
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.
Yea we should merge it into
check_n_features_in
.I think you are referring to
check_estimators_partial_fit_n_features
. This new check adds two new requirements on top ofcheck_estimators_partial_fit_n_features
:n_features_in_
is set during the first call topartial_fit
.I updated the comment with the above message.
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.
I was more referring to e.g.
check_classifiers_train
:but we can keep it as-is and remove later (or not, as long as it passes)