binary_cross_entropy

ivy.neural_net_functional.losses.binary_cross_entropy(true, pred, epsilon=1e-07)[source]

Computes the binary cross entropy loss.

Parameters
  • true (array) – true labels

  • pred (array) – Predicted labels

  • epsilon (float, optional) – small constant to add to log functions, default is 1e-7

Returns

The binary cross entropy loss array.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty