auto-keras

Autokeras exported model performs not as expected

大兔子大兔子 提交于 2019-12-22 08:22:51
问题 I just installed autokeras on python3.6. After some bug fixing it works well and I can train models with my dataset. After training i get a model with an accuracy of 0.991 and loss of 0.06. With the predict-function it classifies my test dataset almost without any fault. But when I export and save it as a keras model the model performs really bad. It classifies everything wrongly and the predict-function returns just random decimals and not the number of the expected class. I think I am just

'predict_generator' return values over then 1 and less then 0

a 夏天 提交于 2019-12-11 04:16:39
问题 I used Autokeras to train my model, after then fit_final I save it as pure keras h5 file. My model: from autokeras import ImageClassifier from autokeras.image.image_supervised import load_image_dataset if __name__ == '__main__': x_test, y_test = load_image_dataset(csv_file_path="test/label.csv", images_path="test") print(x_test.shape) print(y_test.shape) x_train, y_train = load_image_dataset(csv_file_path="train/label.csv", images_path="train") print(x_train.shape) print(y_train.shape) clf =