Skip to content

.get_output crashes due with version error #1105

Closed
@BillmanH

Description

@BillmanH

I have a notebook that crashes when on 'get_output'.

best_run, fitted_model = run.get_output()
print(best_run)
print(fitted_model)

The error I get:

WARNING - The version of the SDK does not match the version the model was trained on.
WARNING - The consistency in the result may not be guaranteed.
WARNING - Package:azureml-automl-core, training version:1.11.0, current version:1.10.0.post1
Package:azureml-automl-runtime, training version:1.11.0, current version:1.10.0.post1
Package:azureml-core, training version:1.11.0, current version:1.10.0.post1
Package:azureml-dataprep, training version:2.0.2, current version:1.10.1
Package:azureml-dataset-runtime, training version:1.11.0.post1, current version:1.10.0
Package:azureml-defaults, training version:1.11.0, current version:1.10.0
Package:azureml-explain-model, training version:1.11.0, current version:1.10.0
Package:azureml-interpret, training version:1.11.0, current version:1.10.0
Package:azureml-pipeline-core, training version:1.11.0, current version:1.10.0
Package:azureml-telemetry, training version:1.11.0, current version:1.10.0
Package:azureml-train-automl-client, training version:1.11.0, current version:1.10.0
Package:azureml-train-automl-runtime, training version:1.11.0.post1, current version:1.10.0
WARNING - Please ensure the version of your local conda dependencies match the version on which your model was trained in order to properly retrieve your model.
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-54-a9cb6b13e60b> in <module>
----> 1 best_run, fitted_model = run.get_output()

~\AppData\Local\Continuum\anaconda3\envs\azureml\lib\site-packages\azureml\train\automl\run.py in get_output(self, iteration, metric, return_onnx_model, return_split_onnx_model, **kwargs)
    593                     )
    594                 else:
--> 595                     fitted_model = self._download_automl_model(curr_run)
    596 
    597             return curr_run, fitted_model

~\AppData\Local\Continuum\anaconda3\envs\azureml\lib\site-packages\azureml\train\automl\run.py in _download_automl_model(self, curr_run)
    822                 import azureml.train.automl.runtime
    823                 with open(self.local_model_path, "rb") as model_file:
--> 824                     fitted_model = pickle.load(model_file)  # type: Optional[Any]
    825                     return fitted_model
    826             except ImportError as e:

~\AppData\Local\Continuum\anaconda3\envs\azureml\lib\site-packages\azureml\automl\runtime\featurization\__init__.py in <module>
      6 
      7 # Data transformer
----> 8 from .data_transformer import DataTransformer, TransformerAndMapper
      9 
     10 

~\AppData\Local\Continuum\anaconda3\envs\azureml\lib\site-packages\azureml\automl\runtime\featurization\data_transformer.py in <module>
     52 from azureml.automl.runtime._engineered_feature_names import (_FeatureTransformers, _GenerateEngineeredFeatureNames,
     53                                                               _Transformer, _TransformerParamsHelper)
---> 54 from ..featurizer.transformer import (AutoMLTransformer, CategoricalFeaturizers, DateTimeFeaturesTransformer,
     55                                       featurization_utilities, GenericFeaturizers, get_ngram_len, TextFeaturizers)
     56 from ..stats_computation import PreprocessingStatistics as _PreprocessingStatistics

~\AppData\Local\Continuum\anaconda3\envs\azureml\lib\site-packages\azureml\automl\runtime\featurizer\transformer\__init__.py in <module>
     26 
     27 # Timeseries
---> 28 from .timeseries import TimeSeriesTransformer, TimeSeriesPipelineType, NumericalizeTransformer, \
     29     MissingDummiesTransformer, LaggingTransformer
     30 

~\AppData\Local\Continuum\anaconda3\envs\azureml\lib\site-packages\azureml\automl\runtime\featurizer\transformer\timeseries\__init__.py in <module>
     63     is_datetime_like, ALLOWED_TIME_COLUMN_TYPES, type_is_numeric, type_is_one_of
     64 
---> 65 from azureml.automl.core.shared.rolling_origin_validator import RollingOriginValidator
     66 
     67 

ImportError: cannot import name 'RollingOriginValidator' from 'azureml.automl.core.shared.rolling_origin_validator' (...\Local\Continuum\anaconda3\envs\azureml\lib\site-packages\azureml\automl\core\shared\rolling_origin_validator.py)

However, I ran this code all in one notebook. So the env that I trained the model is the same that I ran the cell above. The run completes successfully. I can't share the exact notebook, but I could probably mask a couple of things and attach that. The notebook isn't doing anything other than a standard AUTOML run. No special processing or features.

I'm not changing environments during the run. Either this error message is wrong, or the SDK is missing some critical feature.

AzureML version: 1.10.0


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions