Keras Tutorial Cheatsheet
Keras Tutorial Cheatsheet
This cheatsheet will take you step-by-step through training a convolutional neural network in Python using the
famous MNIST dataset for handwritten digits classification. Our classifier will boast over 99% accuracy.
Keras is our recommended library for deep learning in Python, especially for beginners. Its minimalist, modular
approach makes it a breeze to get deep neural networks up and running.
To see the most up-to-date full tutorial, as well as installation instructions, visit the online tutorial at
elitedatascience.com.
Compile model
Load pre-shuffled MNIST data model.compile(loss=’categorical_crossentropy’,
into train and test sets optimizer=’adam’,
(X_train, y_train), (X_test, y_test) = mnist.load_data() metrics=[‘accuracy’])
To see the most up-to-date full tutorial, explanations, and additional context, visit the online tutorial at elitedatascience.com.
We also have plenty of other tutorials and guides.
ELITEDATASCIENCE.COM