Skip to content

Instantly share code, notes, and snippets.

@DanielDaCosta
Created May 6, 2020 02:11
Show Gist options
  • Save DanielDaCosta/1f990880541241520fda975fdbe6e891 to your computer and use it in GitHub Desktop.
Save DanielDaCosta/1f990880541241520fda975fdbe6e891 to your computer and use it in GitHub Desktop.
Output sparse_categorical_crossentropy Medium
categorical_output = Dense(3, activation='softmax', name='categorical_output')(x)
output_array.append(categorical_output)
metrics_array['categorical_output'] = 'sparse_categorical_accuracy'
loss_array['categorical_output'] = 'sparse_categorical_crossentropy'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment