Facebook
From Speedy Plover, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 46
  1. ImportError                               Traceback (most recent call last)
  2. <ipython-input-18-161599dc225e> in <module>
  3. ----> 1 best_run, fitted_model = run.get_output()
  4.       2 print(best_run)
  5.       3 print(fitted_model)
  6.  
  7. /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)
  8.     697                     fitted_model = _download_automl_onnx_model(curr_run, model_name)
  9.     698                 else:
  10. --> 699                     fitted_model = _download_automl_model(curr_run, model_name)
  11.     700
  12.     701             return curr_run, fitted_model
  13.  
  14. /anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/train/automl/_model_download_utilities.py in _download_automl_model(run, model_name)
  15.      85             # Pass through any exceptions from loading the model.
  16.      86             # Try is used here to ensure we can cleanup the side effect of model downlad.
  17. ---> 87             model = _load_automl_model(model_path)
  18.      88             if model is None:
  19.      89                 # If we can retrieve the automl runtime version, we do so we can inform the user what to install.
  20.  
  21. /anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/train/automl/_model_download_utilities.py in _load_automl_model(model_path)
  22.     151         import azureml.train.automl.runtime
  23.     152         with open(model_path, "rb") as model_file:
  24. --> 153             fitted_model = pickle.load(model_file)  # type: Optional[Any]
  25.     154             return fitted_model
  26.     155     except ImportError as e:
  27.  
  28. /anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/automl/runtime/_ml_engine/__init__.py in <module>
  29.       4 """Classes and methods for MLEngine."""
  30.       5
  31. ----> 6 from .ml_engine import validate, featurize, train, evaluate_classifier
  32.       7
  33.       8 from .featurizer_suggestion import suggest_featurizers
  34.  
  35. /anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/automl/runtime/_ml_engine/ml_engine.py in <module>
  36.      47 from azureml.automl.core.automl_base_settings import AutoMLBaseSettings
  37.      48 from azureml.automl.runtime._data_definition import RawExperimentData
  38. ---> 49 from azureml.automl.runtime._ml_engine.validation import RawExperimentDataValidator
  39.      50 from azureml.automl.runtime.featurization import AutoMLTransformer
  40.      51 from azureml.automl.runtime.shared.types import DataInputType
  41.  
  42. /anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/automl/runtime/_ml_engine/validation/__init__.py in <module>
  43.       5 # Module containing all common interfaces related to data validations.
  44.       6 from .validators import AbstractRawExperimentDataValidator, AbstractTabularDataValidator
  45. ----> 7 from .materialized_tabular_data_validator import MaterializedTabularDataValidator
  46.       8 from .raw_experiment_data_validator import RawExperimentDataValidator
  47.  
  48. /anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/automl/runtime/_ml_engine/validation/materialized_tabular_data_validator.py in <module>
  49.      24 from azureml.automl.runtime import _common_training_utilities
  50.      25 from azureml.automl.runtime._data_definition import MaterializedTabularData
  51. ---> 26 from azureml.automl.runtime._ml_engine.validation import common_data_validations
  52.      27 from azureml.automl.runtime._ml_engine.validation.validators import AbstractTabularDataValidator
  53.      28 from azureml.automl.runtime.shared import utilities as runtime_utilities
  54.  
  55. /anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/automl/runtime/_ml_engine/validation/common_data_validations.py in <module>
  56.      17 from azureml.automl.core.featurization import FeaturizationConfig
  57.      18 from azureml.automl.core.shared import constants, utilities
  58. ---> 19 from azureml.automl.core.shared._diagnostics.automl_error_definitions import (
  59.      20     DatasetContainsInf, DataShapeMismatch, ExperimentTimeoutForDataSize, FeaturizationConfigColumnMissing,
  60.      21     InvalidMetricForSingleValuedColumn, InvalidValuesInData, SampleCountMismatch, UnhashableValueInColumn,
  61.  
  62. ImportError: cannot import name 'UnhashableValueInColumn'