Type Poisson
Namespace tensorflow.keras.losses
Parent LossFunctionWrapper
Interfaces IPoisson
Computes the Poisson loss between `y_true` and `y_pred`. `loss = y_pred - y_true * log(y_pred)` Usage:
Usage with the `compile` API:
Show Example
p = tf.keras.losses.Poisson() loss = p([1., 9., 2.], [4., 8., 12.]) print('Loss: ', loss.numpy()) # Loss: -0.35702705