Binary crossentropy metric function.
Example:
const x = tf.tensor2d([[0], [1], [1], [1]]);const y = tf.tensor2d([[0], [0], [0.5], [1]]);const crossentropy = tf.metrics.binaryCrossentropy(x, y);crossentropy.print(); Copy
const x = tf.tensor2d([[0], [1], [1], [1]]);const y = tf.tensor2d([[0], [0], [0.5], [1]]);const crossentropy = tf.metrics.binaryCrossentropy(x, y);crossentropy.print();
Binary Tensor of truth.
Binary Tensor of prediction, probabilities for the 1 case.
1
Accuracy Tensor.
Generated using TypeDoc
Binary crossentropy metric function.
Example: