precision: Precision

View source: R/precision.R

precisionR Documentation

Precision

Description

Compute Precision using confusion matrix. "Precision" is another term to determine "Positive Predicted Values" (PPV). In this package the 'precision()' function is defined as a wrapper for 'positive_predicted_values()'. It's possible to calculate the skew-sensitive formulation of the precision by adjusting 'r' parameter.

Usage

precision(confusion_matrix, r = NULL)

Arguments

confusion_matrix

Confusion matrix to be used.

r

Skew Ratio parameter, which is required to calculate skew-sensitive form of Precision, Deafult to NULL, which calculates a non-weighted Precision.

Value

integer value of Precision


nikitagusarov/performancer documentation built on Jan. 12, 2023, 12:19 a.m.