cavis/docs/keras-import/templates/losses.md

1.3 KiB

title short_title description category weight
Keras Import Loss Functions Losses Supported Keras loss functions. Keras Import 4

Supported loss functions

DL4J supports all available Keras losses (except for logcosh), namely:

  • mean_squared_error
  • mean_absolute_error
  • mean_absolute_percentage_error
  • mean_squared_logarithmic_error
  • squared_hinge
  • hinge
  • categorical_hinge
  • logcosh
  • categorical_crossentropy
  • sparse_categorical_crossentropy
  • binary_crossentropy
  • kullback_leibler_divergence
  • poisson
  • cosine_proximity

The mapping of Keras loss functions can be found in KerasLossUtils.