-
-
Notifications
You must be signed in to change notification settings - Fork 26k
[MRG]Diabetes example with GridSearchCV #8268
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
Quickly looked at the doc in your first commit and the output of the example does not change so this looks good. I'll wait for CircleCI to come back to have another look. |
Also use |
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. Results seems similar.
scores.append(np.mean(this_scores)) | ||
scores_std.append(np.std(this_scores)) | ||
|
||
scores, scores_std = np.array(scores), np.array(scores_std) | ||
|
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.
Remove the blank line.
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.
Small comments. I feel the naming was better in the previous version so keep it like it was.
|
||
clf = GridSearchCV(lasso, tuned_parameters, cv=n_folds, refit=False) | ||
clf.fit(X, y) | ||
means = clf.cv_results_['mean_test_score'] |
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.
Can you keep the name scores
for this variable?
clf = GridSearchCV(lasso, tuned_parameters, cv=n_folds, refit=False) | ||
clf.fit(X, y) | ||
means = clf.cv_results_['mean_test_score'] | ||
stds = clf.cv_results_['std_test_score'] |
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.
Can you keep the name scores_std
for this variable?
Please use another branch for your codecov work. If you revert your last commit, I actually think that your PR was mergeable. |
Also use meaningful branch names as far as possible. |
@lesteve All further commits are reverted. |
I'll merge this when the CI come back green. @rishikksh20 please ping me if I forget. |
@lesteve please merge it . |
Merged, thanks a lot |
Rewrite the diabetes example with GridSearchCV
Reference Issue
Fixes #8248
What does this implement/fix? Explain your changes.
Modify diabetes example for GridSearchCV
Any other comments?