I have fitted a classification model using auto-sklearn, and managed to save it to a file with pickle.
x = automl.show_models()
results = {"ensemble": x}
pickle.dump(results, open('file.pickle','wb'))
I also have managed to reload the model.
automl = pickle.load(open('file.pickle','rb'))
But I can't manage to use the reloaded model to run predictions on new data. When I run:
y_hat = automl.predict(X_test)
I get the following error:
AttributeError: 'str' object has no attribute 'predict'