Evaluating the model
Now, it's time to evaluate the best model with the testing dataset:
clf.evaluate(x_test, y_test)
Here is the output:
782/782 [==============================] - 41s 52ms/step - loss: 0.3118 - accuracy: 0.8724 [0.31183066964149475, 0.8723599910736084]
As we can see, 0.8724
is a really good final prediction accuracy for the time we've invested.