-
-
Notifications
You must be signed in to change notification settings - Fork 211
Improve unit tests #985
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
Improve unit tests #985
Conversation
ccec20d to
60bd37a
Compare
Codecov Report
Continue to review full report at Codecov.
|
PGijsbers
left a comment
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.
Overall looks good, just would like some minor clarifications.
| n_missing_vals = self.TEST_SERVER_TASK_SIMPLE[1] | ||
| n_test_obs = self.TEST_SERVER_TASK_SIMPLE[2] | ||
| self._run_and_upload_classification(lr, task_id, n_missing_vals, n_test_obs, "62501") | ||
| self.assertLessEqual(warn_mock.call_count, 3) |
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.
Please explain why we expect three warnings.
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.
Honestly, I don't understand the 3 myself and would have expected 1. I will simply increase the max_iter so this test passes.
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.
Ah, I now understand. We call run_model_on_task once, and then twice a helper function called _rerun_model_and_compare_predictions. Anyway, I think increasing the number iterations is a bit cleaner.
PGijsbers
left a comment
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 overall, just expecting some minor explanations.
PGijsbers
left a comment
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 👍
formatargument toOpenMLDataset