-
Notifications
You must be signed in to change notification settings - Fork 87
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
Have automl search raise config errors in init instead of search #933
Conversation
Codecov Report
@@ Coverage Diff @@
## main #933 +/- ##
==========================================
+ Coverage 99.83% 99.85% +0.02%
==========================================
Files 170 170
Lines 8578 8565 -13
==========================================
- Hits 8564 8553 -11
+ Misses 14 12 -2
Continue to review full report at Codecov.
|
def test_objective_at_search_time(X_y_multi): | ||
X, y = X_y_multi | ||
error_automl = AutoMLSearch(problem_type='multiclass', additional_objectives=['Precision', 'AUC'],) | ||
def test_incompatible_additional_objectives(): | ||
with pytest.raises(ValueError, match="is not compatible with a "): | ||
error_automl.search(X, y) |
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.
Reworked this test a little via rename and updating to check during initialization.
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.
looks good to me!
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!
Continuation of #930, closes #865