-
-
Notifications
You must be signed in to change notification settings - Fork 25.5k
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
ENH allow to return train/test split indices in cross_validate #25659
ENH allow to return train/test split indices in cross_validate #25659
Conversation
ping @thomasjpfan and @ogrisel that might be interested to review this feature. |
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.
Thank you for the PR! The feature looks reasonable to me.
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
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.
Minor comments about testing and docstrings. Otherwise LGTM
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
…date' into add_return_indices_cross_validate
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 with 2 suggestions:
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
I synced with main via github and marked as auto-merge. |
Hahaha, this is annoying.. |
The first step towards #21211
This PR expose
return_indices
allowing us to get the train/test split used during the cross-validation using thecross_validate
function.It will be useful when:
from_cv_results
in displays