From 0a3db7186d24464940557f28e7e6d33121acfa11 Mon Sep 17 00:00:00 2001 From: Jake Henning <59198928+jkhenning@users.noreply.github.com> Date: Mon, 20 Apr 2020 15:48:39 +0300 Subject: [PATCH] Update autokeras_imdb_example.py --- examples/autokeras/autokeras_imdb_example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/autokeras/autokeras_imdb_example.py b/examples/autokeras/autokeras_imdb_example.py index bfcf90b7..f6b92c37 100644 --- a/examples/autokeras/autokeras_imdb_example.py +++ b/examples/autokeras/autokeras_imdb_example.py @@ -1,6 +1,6 @@ -import tensorflow as tf import autokeras as ak import numpy as np +import tensorflow as tf from tensorflow import keras from trains import Task @@ -50,4 +50,4 @@ tensorboard_callback_test = keras.callbacks.TensorBoard(log_dir='log') clf.fit(x_train, y_train, epochs=2, callbacks=[tensorboard_callback_train]) clf.fit(x_test, y_test, epochs=2, callbacks=[tensorboard_callback_test]) # Evaluate on the testing data. -print('Accuracy: {accuracy}'.format(accuracy=clf.evaluate(x_test, y_test))) \ No newline at end of file +print('Accuracy: {accuracy}'.format(accuracy=clf.evaluate(x_test, y_test)))