Link Search Menu Expand Document

getRecallScores()

Compute the precision score for all classes.

Recall score is the ratio tp / (tp + fn), where tp is the number of true positives and fn the number of false negtive. The recall is intuitively the ability of the classifier to find all the positive samples.

Import

import * as datacook from '@pipcook/datacook';
const { getRecallScores } = datacook.Metrics;

Syntax

getRecallScores(yTrue: Tensor | string[] | number[], yPred: Tensor | string[] | number[]): number

Parameters

Parametertypedescription
yTureTensor | string[] | number[]True labels
yPredTensor | string[] | number[]Predicted labels

Returns

Tensor : tensor of recall scores