Skip to content

Instantly share code, notes, and snippets.

@charlesbmi
Created December 11, 2020 18:11
Show Gist options
  • Save charlesbmi/ecab4f173752848456e2777514a61cba to your computer and use it in GitHub Desktop.
Save charlesbmi/ecab4f173752848456e2777514a61cba to your computer and use it in GitHub Desktop.
# x_train, y_train = ...
model.compile(loss=tf.keras.losses.CategoricalCrossentropy())
model.fit(x=x_train, y=y_train)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment