`Prec()` computes the Precision of PPV (Positive Predictive Value) between the output
of a classification model and the actual values of the target.
The precision of each class can be aggregated. Macro-precision is the average of the
precision of each classes. Micro-precision is the weighted average.
Usage
Prec(ct, multi.class = "macro")
Value
PPV (a single value).
Arguments
ct
Confusion Matrix.
multi.class
Should the results of each class be aggregated, and how?
Options: "none", "macro", "micro". (Defaults: "macro").