Skip to content

Instantly share code, notes, and snippets.

@john-adeojo
Created January 22, 2021 00:28
Show Gist options
  • Save john-adeojo/7c48957e98ac381064ed02d723882590 to your computer and use it in GitHub Desktop.
Save john-adeojo/7c48957e98ac381064ed02d723882590 to your computer and use it in GitHub Desktop.
# 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