LoslegenKostenlos loslegen

Is this dollar bill fake ?

You are now ready to train your model and check how well it performs when classifying new bills! The dataset has already been partitioned into features: X_train & X_test, and labels: y_train & y_test.

Diese Übung ist Teil des Kurses

Introduction to Deep Learning with Keras

Kurs anzeigen

Anleitung zur Übung

  • Train your model for 20 epochs calling .fit(), passing in the training data.
  • Check your model accuracy using the .evaluate() method on the test data.
  • Print accuracy.

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Train your model for 20 epochs
model.____(____, ____, epochs = ____)

# Evaluate your model accuracy on the test set
accuracy = ____.____(____, ____)[1]

# Print accuracy
print('Accuracy:', ____)
Code bearbeiten und ausführen