Autokeras really has a lack of documentation.
I've found some ways how trained model may be used further (for autokeras version 0.3.7) in case of ImageClassifier:
- if you are using
autokeras.image.image_supervised.ImageClassifier and want to continue searching models by using fit, or restart final_fit for the best model in your graph_directory, you can use this:
clf = ImageClassifier(verbose=True, augment=False, path='./path/to/graph/directory', resume=True)
now you are able to continue net architecture search or export your best model. If you want to export your best model ImageClassifier and use it for prediction, you may use:
clf.export_autokeras_model('your_model.pkl')
and later you can load it that way:
from autokeras.utils import pickle_from_file
model = pickle_from_file('your_model.pkl')
and after that you are able to make predictions by:
y_predict = model.predict(x_test)
It is suitable solution, if you want work exactly with Autokeras ImageClassifier model later (not convert it into something else).