-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
[MRG] extending BaseSearchCV with a custom search strategy #9599
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
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
d0d0436
ENH Implementers of BaseSearchCV can now provide candidates through a…
jnothman d4dbb5d
Pull out _format_results helper
jnothman 8e36e37
Cannot del all_results in Py2
jnothman 0d20d0b
Test
jnothman 4264fff
More test, and a fixme
jnothman 6905a47
Fix rank and masking cases
jnothman 9c46788
Improve words
jnothman ab56a97
Spell
8000
ing
jnothman dcaeb14
Provide cumulative results to coroutine
jnothman 4f9f84e
See if we can make private methods appear
jnothman 249bcbb
Merge branch 'master' into search-coroutine
jnothman 05c3c3b
Improve documentation
jnothman 1dad444
FIX parameter sampler generation
jnothman 579a43e
Public AdaptiveSearchCV instead of abstract interface
jnothman 90aaa06
BaseSearchCV is not in sklearn.model_selection.__init__
jnothman d6ef8da
AdaptiveSearchCV is also OTHER
jnothman 1c19d9f
Fix super call
jnothman 709b89a
Change coroutine structure to callback
jnothman b77eec4
Allow the user to pass search directly
jnothman 4211b2b
Adapt tests to new interface
jnothman c23e378
Clarify
jnothman 6c7c231
Merge branch 'master' into search-coroutine
jnothman 4ef1f1b
Fix merge error
jnothman e430dc4
Fixes given merge
jnothman ecffb3e
PEP8 fix
jnothman 718ded1
Get rid of AdaptiveSearchCV
jnothman df3e4c7
Specify cv to a divisor of n_samples
jnothman f14c8ce
Avoid return_train_score FutureWarning
jnothman 7d91d18
Nitpicks
jnothman 2a3eecf
What's new
jnothman 5c135d0
Olivier's comments
jnothman bd88b64
Merge branch 'master' into search-coroutine
jnothman 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
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.
2BAB
Uh oh!
There was an error while loading. Please reload this page.
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.
Please add some motivation for the intent of this abstract method. For instance:
This method, implemented in sub-classes, makes it is possible to customize the
the scheduling of evaluations: GridSearchCV and RandomizedSearchCV schedule
evaluations for their whole parameter search space at once but other more
sequential approaches are also possible: for instance is possible to
iteratively schedule evaluations for new regions of the parameter search
space based on previously collected evaluation results. This makes it
possible to implement Bayesian optimization or more generally sequential
model-based optimization by deriving from the
BaseSearchCV
abstract baseclass.
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.
Very nice text!