- ImportError Traceback (most recent call last)
- <ipython-input-18-161599dc225e> in <module>
- ----> 1 best_run, fitted_model = run.get_output()
- 2 print(best_run)
- 3 print(fitted_model)
- /anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/train/automl/run.py in get_output(self, iteration, metric, return_onnx_model, return_split_onnx_model, **kwargs)
- 697 fitted_model = _download_automl_onnx_model(curr_run, model_name)
- 698 else:
- --> 699 fitted_model = _download_automl_model(curr_run, model_name)
- 700
- 701 return curr_run, fitted_model
- /anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/train/automl/_model_download_utilities.py in _download_automl_model(run, model_name)
- 85 # Pass through any exceptions from loading the model.
- 86 # Try is used here to ensure we can cleanup the side effect of model downlad.
- ---> 87 model = _load_automl_model(model_path)
- 88 if model is None:
- 89 # If we can retrieve the automl runtime version, we do so we can inform the user what to install.
- /anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/train/automl/_model_download_utilities.py in _load_automl_model(model_path)
- 151 import azureml.train.automl.runtime
- 152 with open(model_path, "rb") as model_file:
- --> 153 fitted_model = pickle.load(model_file) # type: Optional[Any]
- 154 return fitted_model
- 155 except ImportError as e:
- /anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/automl/runtime/_ml_engine/__init__.py in <module>
- 4 """Classes and methods for MLEngine."""
- 5
- ----> 6 from .ml_engine import validate, featurize, train, evaluate_classifier
- 7
- 8 from .featurizer_suggestion import suggest_featurizers
- /anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/automl/runtime/_ml_engine/ml_engine.py in <module>
- 47 from azureml.automl.core.automl_base_settings import AutoMLBaseSettings
- 48 from azureml.automl.runtime._data_definition import RawExperimentData
- ---> 49 from azureml.automl.runtime._ml_engine.validation import RawExperimentDataValidator
- 50 from azureml.automl.runtime.featurization import AutoMLTransformer
- 51 from azureml.automl.runtime.shared.types import DataInputType
- /anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/automl/runtime/_ml_engine/validation/__init__.py in <module>
- 5 # Module containing all common interfaces related to data validations.
- 6 from .validators import AbstractRawExperimentDataValidator, AbstractTabularDataValidator
- ----> 7 from .materialized_tabular_data_validator import MaterializedTabularDataValidator
- 8 from .raw_experiment_data_validator import RawExperimentDataValidator
- /anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/automl/runtime/_ml_engine/validation/materialized_tabular_data_validator.py in <module>
- 24 from azureml.automl.runtime import _common_training_utilities
- 25 from azureml.automl.runtime._data_definition import MaterializedTabularData
- ---> 26 from azureml.automl.runtime._ml_engine.validation import common_data_validations
- 27 from azureml.automl.runtime._ml_engine.validation.validators import AbstractTabularDataValidator
- 28 from azureml.automl.runtime.shared import utilities as runtime_utilities
- /anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/automl/runtime/_ml_engine/validation/common_data_validations.py in <module>
- 17 from azureml.automl.core.featurization import FeaturizationConfig
- 18 from azureml.automl.core.shared import constants, utilities
- ---> 19 from azureml.automl.core.shared._diagnostics.automl_error_definitions import (
- 20 DatasetContainsInf, DataShapeMismatch, ExperimentTimeoutForDataSize, FeaturizationConfigColumnMissing,
- 21 InvalidMetricForSingleValuedColumn, InvalidValuesInData, SampleCountMismatch, UnhashableValueInColumn,
- ImportError: cannot import name 'UnhashableValueInColumn'