nueramic_mathml.ml.metrics.precision#
- precision(y_true, y_pred)[source]#
Return Positive Predictive Value . PPV = TP / (TP + FP)
Note
if TP + FP == 0, then PPV = 0
- Parameters:
y_true (Tensor) – array with true values of binary classification
y_pred (Tensor) – array with prediction values of binary classification
- Returns:
- Return type:
float