-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
ENH _fit_and_score now returns a dictionary #17332
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 _fit_and_score now returns a dictionary #17332
Conversation
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.
fit_params=fit_params, | ||
return_n_test_samples=True, | ||
error_score=error_score) | ||
return results["test_scores"], parameters, results["n_test_samples"] |
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.
Would it make sense to get the parameters from the dict?
return results["test_scores"], parameters, results["n_test_samples"] | |
return results["test_scores"], results["parameters"], results["n_test_samples"] |
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.
In this case, I would say no. return_parameters
is set to false so parameters
is not in the dict and fit_grid_point
is deprecated.
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.
OK make sense
parameters : dict or None | ||
The parameters that have been evaluated. | ||
estimator : estimator object | ||
The fitted estimator |
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 fitted estimator | |
The fitted estimator. |
We are going to have some git fun with some of the PR :) |
ping: merge conflicts |
I think that the documentation build was broken 😕. I am working to fix this as soon as possible! |
* ENH _fit_and_score now returns a dictionary * MRG * REV * LOL * Removing things in gitignore is fun
* ENH _fit_and_score now returns a dictionary * MRG * REV * LOL * Removing things in gitignore is fun
Reference Issues/PRs
Related to #15126
What does this implement/fix? Explain your changes.
The goal of this PR is to make #15126 easily to review.