Tensorflow.js tf.metrics.categoricalCrossentropy() Function
The tf.metrics.categoricalCrossentropy() function categorically finds the categorical crossentropy between a target and an output tensor.
Parameters: This function accepts the following two parameters:
- yTrue: It is the truth tensor, and it is of type tf.Tensor.
- yPred: It is the prediction tensor, and it is of type tf.Tensor.
Return Value: It returns the tf.Tensor object.
Tensor [3.8190854, 2.526145]