-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
FEA add ValidationCurveDisplay in model_selection module #25120
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
FEA add ValidationCurveDisplay in model_selection module #25120
Conversation
ping @ArturoAmorQ since this is something that we probably used in the MOOC. |
Don't forget to add the |
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 for the PR @glemaitre, this will certainly be a nice addition!
Here are a couple of comments.
ebec90b
to
c1d496c
Compare
@@ -71,7 +71,7 @@ The function :func:`validation_curve` can help in this case:: | |||
>>> import numpy as np | |||
>>> from sklearn.model_selection import validation_curve | |||
>>> from sklearn.datasets import load_iris | |||
>>> from sklearn.linear_model import Ridge | |||
>>> from sklearn.svm import SVC |
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.
The problem here is that we used a regressor for a classification problem.
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.
A quick first pass.
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
|
This is a parameter of |
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.
Another pass. Otherwise LGTM.
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.
More feedback:
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org> Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org> Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Fine doing this in another PR. We also need to improve the |
doc/whats_new/v1.3.rst
Outdated
train and test curves to be consistent with | ||
:class:`model_selection.ValidationCurveDisplay`. You can set `score_type="test"` to |
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.
The motivation is more that it's a better default behavior for the typical use cases, rather than consistency
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 the above suggestions and the following are addressed, LGTM!
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Thanks @glemaitre and @jeremiedbb! |
…n#25120) Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com> Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Add
ValidationCurveDisplay
to themodel_selection
module.This is the missing curve for the module.