Tensorflow.js tf.metrics.precision() Function
Tensorflow.js is an open-source library developed by Google for running machine learning models as well as deep learning neural networks in the browser or node environment.
The .metrics.precision() function is used to calculate the precision of the expectancy with reference to the names.
- yTrue: It is the stated ground truth tensor which is supposed to hold values from 0 to 1 and it can be of type tf.Tensor.
- yPred: It is the stated prediction tensor which is supposed to hold values from 0 to 1 and it can be of type tf.Tensor.
Return Value: It returns the tf.Tensor object.