-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG] Randomized Search Example: Fix min_samples_split values for RandomizedSearchCV and GridSearchCV #8847
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
[MRG] Randomized Search Example: Fix min_samples_split values for RandomizedSearchCV and GridSearchCV #8847
Conversation
…dSearchCV and GridSearchCV
it should be 2 rather than 1.0
and we should have a CI test for non-plotted examples or convert as many as
possible to plots
…On 9 May 2017 6:37 am, "Manraj Singh" ***@***.***> wrote:
Fixes min_samples_split values for RandomizedSearchCV and GridSearchCV in
the example used in documentation.
Reference Issue
None
What does this implement/fix? Explain your changes.
Fixes ValueError: min_samples_split must be at least 2 or in (0, 1], got 1
error in examples/model_selection/randomized_search.py
<https://github.com/scikit-learn/scikit-learn/blob/master/examples/model_selection/randomized_search.py>
Any other comments?
None
------------------------------
You can view, comment on, or merge this pull request online at:
#8847
Commit Summary
- Randomized Search Example: Fix min_samples_split values for
RandomizedSearchCV and GridSearchCV
File Changes
- *M* examples/model_selection/randomized_search.py
<https://github.com/scikit-learn/scikit-learn/pull/8847/files#diff-0>
(4)
Patch Links:
- https://github.com/scikit-learn/scikit-learn/pull/8847.patch
- https://github.com/scikit-learn/scikit-learn/pull/8847.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8847>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAEz63gmmNIqbrFhCzBk-eNYOX-eKrk_ks5r330EgaJpZM4NUdyC>
.
|
At one point @ogrisel suggested that we should have a convention like I quickly looked at it at the time and there are at least a few of the 17 non I'll open a separate issue about this. |
Into and floats are interpreted differently here. Integer 1 is not allowed.
Float 1.0 indicates 100%
…On 10 May 2017 3:34 am, "Manraj Singh" ***@***.***> wrote:
@jnothman <https://github.com/jnothman> Made the required change. 😄 I
have a question though. If error says (0, 1], why does it fail on 1 when it
should not and not on 1.0 to maintain consistency? Is it a bug (and known)?
Yes, we should definitely build all examples.
@lesteve <https://github.com/lesteve> That's great! I can help fixing
that. 😄
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8847 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEz607-iuZ6i03oyDDEeafywn9mHCemks5r4KOJgaJpZM4NUdyC>
.
|
Thanks |
…domizedSearchCV and GridSearchCV (scikit-learn#8847) * Randomized Search Example: Fix min_samples_split values for RandomizedSearchCV and GridSearchCV * Randomized Search Example: Change min_samples_split from 1.0 -> 2
…domizedSearchCV and GridSearchCV (scikit-learn#8847) * Randomized Search Example: Fix min_samples_split values for RandomizedSearchCV and GridSearchCV * Randomized Search Example: Change min_samples_split from 1.0 -> 2
…domizedSearchCV and GridSearchCV (scikit-learn#8847) * Randomized Search Example: Fix min_samples_split values for RandomizedSearchCV and GridSearchCV * Randomized Search Example: Change min_samples_split from 1.0 -> 2
…domizedSearchCV and GridSearchCV (scikit-learn#8847) * Randomized Search Example: Fix min_samples_split values for RandomizedSearchCV and GridSearchCV * Randomized Search Example: Change min_samples_split from 1.0 -> 2
…domizedSearchCV and GridSearchCV (scikit-learn#8847) * Randomized Search Example: Fix min_samples_split values for RandomizedSearchCV and GridSearchCV * Randomized Search Example: Change min_samples_split from 1.0 -> 2
…domizedSearchCV and GridSearchCV (scikit-learn#8847) * Randomized Search Example: Fix min_samples_split values for RandomizedSearchCV and GridSearchCV * Randomized Search Example: Change min_samples_split from 1.0 -> 2
…domizedSearchCV and GridSearchCV (scikit-learn#8847) * Randomized Search Example: Fix min_samples_split values for RandomizedSearchCV and GridSearchCV * Randomized Search Example: Change min_samples_split from 1.0 -> 2
…domizedSearchCV and GridSearchCV (scikit-learn#8847) * Randomized Search Example: Fix min_samples_split values for RandomizedSearchCV and GridSearchCV * Randomized Search Example: Change min_samples_split from 1.0 -> 2
Fixes
min_samples_split
values for RandomizedSearchCV and GridSearchCV in the example used in documentation.Reference Issue
None
What does this implement/fix? Explain your changes.
Fixes
ValueError: min_samples_split must be at least 2 or in (0, 1], got 1
error in examples/model_selection/randomized_search.pyAny other comments?
None