Skip to content
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

Merged
merged 11 commits into from
Aug 22, 2022

Conversation

liususan091219
Copy link
Collaborator

@liususan091219 liususan091219 commented Aug 21, 2022

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

@liususan091219 liususan091219 changed the title Mlflow bug "intermediate_results" TypeError: argument of type 'NoneType' is not iterable Aug 21, 2022
Copy link
Contributor

@sonichi sonichi left a 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.

@@ -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
Copy link
Contributor

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.

Copy link
Contributor

@sonichi sonichi left a 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?

with mlflow.start_run():
automl = AutoML()
automl_settings = {
"time_budget": 1, # in seconds
Copy link
Contributor

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.

@liususan091219 liususan091219 merged commit 2314cc5 into microsoft:main Aug 22, 2022
@liususan091219 liususan091219 deleted the mlflow_bug branch August 22, 2022 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants