Search code examples
time-seriesazure-machine-learning-serviceforecast

Azure ML Error: TimeSeriesImputer object has no attribute '_known_df'


Running this orange juice sales notebook I get the below error with the .forecast() method.

code

# The featurized data, aligned to y, will also be returned.
# This contains the assumptions that were made in the forecast
# and helps align the forecast to the original data
y_predictions, X_trans = fitted_model.forecast(X_test)

Error (full stacktrace):

**AttributeError: 'TimeSeriesImputer' object has no attribute '_known_df'**

Solution

  • This is commonly fixed by upgrading to the latest SDK. You can do this by running pip install --upgrade azureml-sdk[explain,automl].

    Thanks, Sabina