Tensorflow.js tf.metrics.categoricalAccuracy() Function
Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment.
The tf.metrics.categoricalAccuracy() function is used to return categorical accuracy between two tensor. It takes two tensor as a parameter.
- a: The first specified tensor.
- b: The second specified tensor. It must have same data type as “a”.
Return Value: It returns the categorical accuracy of the two specified tensors “a” and “b”.
Tensor [0, 0]