compute_tpr#

mlquantify.utils.method.compute_tpr(TP, FN)[source]#

Compute the True Positive Rate (Recall) for a binary classification task.

Parameters:
TPint

The number of True Positives.

FNint

The number of False Negatives.

Returns:
float

The True Positive Rate (Recall).