-
Notifications
You must be signed in to change notification settings - Fork 83
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
Add validation_score as 1st CV fold score into rankings #1221
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1221 +/- ##
=======================================
Coverage 99.92% 99.92%
=======================================
Files 200 200
Lines 12365 12369 +4
=======================================
+ Hits 12356 12360 +4
Misses 9 9
Continue to review full report at Codecov.
|
If we're using the first CV fold score as the validation score, shouldn't the |
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.
@jeremyliweishih Looks good to me! Are you planning on updating the docs/user guide? Might be worth explaining the difference between score
and validation_score
?
@freddyaboulton good idea, i'll take a look. |
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.
🚢
@@ -697,7 +697,8 @@ def _add_result(self, trained_pipeline, parameters, training_time, cv_data, cv_s | |||
"high_variance_cv": high_variance_cv, | |||
"training_time": training_time, | |||
"cv_data": cv_data, | |||
"percent_better_than_baseline": percent_better | |||
"percent_better_than_baseline": percent_better, | |||
"validation_score": cv_scores[0] |
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.
Awesome, I didn't realize how simple this code change would be! 👍
docs/source/user_guide/automl.ipynb
Outdated
@@ -236,7 +236,7 @@ | |||
"name": "python", | |||
"nbconvert_exporter": "python", | |||
"pygments_lexer": "ipython3", | |||
"version": "3.8.2" | |||
"version": "3.7.4" |
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 delete
@@ -134,7 +134,7 @@ | |||
"metadata": {}, | |||
"source": [ | |||
"## View Rankings\n", | |||
"A summary of all the pipelines built can be returned as a pandas DataFrame which is sorted by score." | |||
"A summary of all the pipelines built can be returned as a pandas DataFrame which is sorted by score. The score column contains the average score across all cross-validation folds while the validation_score column is computed from the first cross-validation fold." |
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.
👍
@@ -75,14 +75,15 @@ def test_search_results(X_y_regression, X_y_binary, X_y_multi, automl_type): | |||
for score in all_objective_scores.values(): | |||
assert score is not None | |||
assert automl.get_pipeline(pipeline_id).parameters == results['parameters'] | |||
assert results['validation_score'] == pd.Series([fold['score'] for fold in results['cv_data']])[0] |
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.
👍
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
Fixes #1115.