-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
MAINT Parameters validation for svm.l1_min_c #24865
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
Conversation
I also don't understand these lines (from here and forward)
Should random seeds check even be here? They are more of a general checks, than svm ones. |
Yes, we also validate the random state (see here for example). We use the string "random_state" in the constraints dictionary, which is interpreted as constraining the parameter to either be an instance of Does that answer the question? |
So, I need to remove these tests, since parameter validation was added and there is no need in outside random seed validation? |
I think I hadn't understand your question on my previous post. If the question is "why are we testing this inside the Hope this time I do answer the question! ;) |
@ArturoAmorQ Oh, I see, so |
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.
Thanks @glevv.
LGTM, and I don't think this function is used anywhere where we need to worry about performance degradation.
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.
LGTM, thanks @glevv!
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.
LGTM.
Reference Issues/PRs
Towards #24862