Created
January 22, 2021 00:28
-
-
Save john-adeojo/7c48957e98ac381064ed02d723882590 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compile the model 1: sequential NN | |
model.compile(loss="sparse_categorical_crossentropy", # We have sparse labels: each instance there is a target class from 0 to 9 and classes are exclusive | |
optimizer="sgd", # model trained useing stochastic gradient descent | |
metrics=["accuracy"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment