Error trying to load azureml.train.automl
Hello, receiving the following error in an Azure Notebook VM while trying to import the ML library -
import json import pickle import numpy as np import pandas as pd
error here!!!
from azureml.train.automl import AutoMLConfig from sklearn.externals import joblib from azureml.core.model import Model import json import pickle import numpy as np import pandas as pd from azureml.train.automl import AutoMLConfig from sklearn.externals import joblib from azureml.core.model import Model
AttributeError Traceback (most recent call last)
/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/train/automl/init.py in
/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/train/automl/_automl.py in
/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/automl/core/fit_pipeline.py in
/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/automl/core/pipeline_run_helper.py in
/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/automl/core/_vendor/automl/client/core/runtime/pipeline_spec.py in
25 AveragedPerceptronMulticlassClassifier, NimbusMlClassifierMixin, NimbusMlRegressorMixin
/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/automl/core/_vendor/automl/client/core/runtime/tf_wrappers.py in
AttributeError: module 'tensorflow' has no attribute 'logging'
Do you know which version of tensorflow you are using?
This SO question may be applicable: https://stackoverflow.com/questions/55318626/module-tensorflow-has-no-attribute-logging
Hello, Not sure about tensorflow. This is a "stock" Notebook VM that was created last week, so no changes were made to the libraries.
Hello,
Sorry for the inconvenience. This issue has been fixed since v1.0.72 but, it's related to the fact that tf==2.0. is installed by default on the notebook instance. It broke other things too as TF2.0 has many changes in its API. Your two options are to upgrade to v1.0.72+ or use the following code to downgrade tensorflow.
pip install -U tensorflow-gpu==1.14.0 tensorflow==estimator==1.14.0
That should fix it for you.