Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add scoring metric info in cross_val_score #13445

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 1 commit into from
Mar 14, 2019
Merged

Add scoring metric info in cross_val_score #13445

merged 1 commit into from
Mar 14, 2019

Conversation

bharatr21
Copy link
Contributor

Reference Issues/PRs

Fix #13424 by adding scoring info in cross_val_score

What does this implement/fix? Explain your changes.

Adds scoring info in cross_val_score docs and references cross_validate

Copy link
Member

@jnothman jnothman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pull request

Similar to :func:`cross_validate`
but only a single metric is permitted.

If None, the estimator's default scorer (if available) is used.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just say "the estimator's score method"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jnothman I thought this was more consistent with cross_validate documentation here but if you still want me to change, then I will

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy with it being consistent... I'd be more happy with them all being changed :) maybe in a subsequent PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jnothman a separate PR is best as it hits files other than _validation.py as well, such as scorer.py in sklearn/metrics/ and _search.py in the same folder. I can get started on that PR if you can merge this one as it may conflict with this file.

@jnothman jnothman merged commit a62775e into scikit-learn:master Mar 14, 2019
@jnothman
Copy link
Member

Thanks!

@bharatr21 bharatr21 deleted the update-doc branch March 14, 2019 18:07
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
koenvandevelde pushed a commit to koenvandevelde/scikit-learn that referenced this pull request Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

there is no default scoring metric info in cross_val_score
2 participants