Tensorflow.js tf.metrics.recall() 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.recall() function is used to compute the recall of the predictions with respect to the labels. ‘Recall’ is one of the metrics in machine learning. You can read more about it here.
tf.metrics.recall (yTrue, yPred)
- yTrue (tensor): It contains the truth values either 0 or 1.
- yPred (tensor): It contains the predicted values only 0 or 1.
Return Value: It returns a tensor (tf.tensor).