-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG+2] ENH/MNT results_ --> cv_results; test_mean_score --> mean_test_score et al. #7324
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
@@ -40,27 +40,27 @@ Model Selection Enhancements and API Changes | |||
:class:`model_selection.GridSearchCV` and | |||
:class:`model_selection.RandomizedSearchCV` utilities. | |||
|
|||
- **The enhanced `results_` attribute** | |||
- **The enhanced `cv_results_` attribute** |
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.
SHould use double-backticks
What about examples? You should be able to get no results from |
Oops! Good catch! I think that's why circle is failing... |
self.cv_results_['params'], | ||
self.cv_results_['mean_test_score'], | ||
self.cv_results_['std_test_score'])): | ||
scores = np.array(list(self.cv_results_['split%d_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.
maybe move %
to the next 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.
Okay. Thx!
017a5e0
to
e941f61
Compare
You didn't actually run that git grep, did you? |
Once you've got those last two, the file list covers #6697. |
'test_mean_score' : [0.81, 0.60, 0.75, 0.82], | ||
'test_std_score' : [0.02, 0.01, 0.03, 0.03], | ||
'test_rank_score' : [2, 4, 3, 1], | ||
'split0_test_score' : [0.8, 0.7, 0.8, 0.9], |
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.
Confirming with @amueller: these names work better for you?
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.
yeah I think that's better
And after those tutorial examples, this LGTM. |
why cosmit? |
Thanks for the review and +1 :) |
😛 |
for i in range(len(clf.results_['params'])): | ||
means = clf.cv_results_['mean_test_score'] | ||
stds = clf.cv_results_['std_test_score'] | ||
for mean, std, params in zip(means, stds, clf.cv_results_['params']): |
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.
I used this chance to address an old review ;)
Why did travis not run on this? other than that: LGTM. And changing the book again lol |
haha |
I'll try a rebase-force-push and see if that restarts travis... |
9a43353
to
ca94d05
Compare
ca94d05
to
4dbab26
Compare
Thanks! |
Thanks for the reviews and merge! |
Thank you for doing all the messy work! On 8 September 2016 at 05:53, Raghav RV notifications@github.com wrote:
|
Addresses #7205
@amueller @jnothman