Computes the recall of the predictions with respect to the labels.
Example:
const x = tf.tensor2d( [ [0, 0, 0, 1], [0, 1, 0, 0], [0, 0, 0, 1], [1, 0, 0, 0], [0, 0, 1, 0] ]);const y = tf.tensor2d( [ [0, 0, 1, 0], [0, 1, 0, 0], [0, 0, 0, 1], [0, 1, 0, 0], [0, 1, 0, 0] ]);const recall = tf.metrics.recall(x, y);recall.print(); Copy
const x = tf.tensor2d( [ [0, 0, 0, 1], [0, 1, 0, 0], [0, 0, 0, 1], [1, 0, 0, 0], [0, 0, 1, 0] ]);const y = tf.tensor2d( [ [0, 0, 1, 0], [0, 1, 0, 0], [0, 0, 0, 1], [0, 1, 0, 0], [0, 1, 0, 0] ]);const recall = tf.metrics.recall(x, y);recall.print();
The ground truth values. Expected to contain only 0-1 values.
The predicted values. Expected to contain only 0-1 values.
Recall Tensor.
Generated using TypeDoc
Computes the recall of the predictions with respect to the labels.
Example: