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
removing deprecated mean_squared_error, cv_folds_file and objectives in learning curve #470
removing deprecated mean_squared_error, cv_folds_file and objectives in learning curve #470
Conversation
@@ -1751,7 +1789,7 @@ def test_learning_curve_objectives_and_no_metrics(): | |||
eq_(grid_objectives, []) | |||
|
|||
|
|||
def test_learning_curve_default_objectives_and_no_metrics(): | |||
def test_learning_curve_no_metrics(): |
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.
Shouldn't this test raise an error? Is there a default learning curve metric?
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.
This test is calling check_config_parsing_value_error
which raises ValueError
. There is no default metrics. Instead, I can change this test case to call _parse_config_file
and raise exception if you think that would be better.
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.
Thanks for addressing my previous comments. There seems to be a bug that removes yield
from one of the tests and I am not sure about one of the changes you made. We are pretty close.
Do we really need these two lines if we are raising a ValueError anyway? I think that's also why the coverage is going down. |
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
This PR removes the support for
mean_squared_error
,cv_folds_file
andobjectives
in learning curve.mean_squared_error
is replaced byneg_mean_squared_error
cv_folds_file
is replaced byfolds_file
objectives
in learning curve is replaced bymetrics
inoutput
section