-
Notifications
You must be signed in to change notification settings - Fork 509
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
"intermediate_results" TypeError: argument of type 'NoneType' is not iterable #695
Conversation
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 add a test case.
test/automl/test_classification.py
Outdated
@@ -391,6 +391,22 @@ def test_sparse_matrix_lr(self): | |||
print(automl_experiment.best_iteration) | |||
print(automl_experiment.best_estimator) | |||
|
|||
def test_metric_for_logging_None(self): | |||
# a test case when search_state.metric_for_logging is None | |||
import mlflow |
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 function won't work here because mlflow is not installed.
You can move the test under test_notebooek_example.py:test_mlflow() where mlflow is installed.
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.
bump version to 1.0.12?
test/automl/test_notebook_example.py
Outdated
with mlflow.start_run(): | ||
automl = AutoML() | ||
automl_settings = { | ||
"time_budget": 1, # in seconds |
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.
Increase to 2 because in my local test, no model is finished using 1.
Why are these changes needed?
When using MLflow, there is a TypeError search.state.metric_for_logging is None
"intermediate_results" TypeError: argument of type 'NoneType' is not iterable
Related issue number
Checks