metrics.precision.max: Maximum Precision (Positive Predictive Value)

Description Usage Arguments Value

View source: R/metrics.precision.max.R

Description

This function allows to use a custom thresholding method to maximize the Precision (Positive Predictive Value).

Usage

1
metrics.precision.max(preds, labels, threshold = FALSE)

Arguments

preds

Type: numeric. The predictions.

labels

Type: numeric. The labels (0, 1).

threshold

Type: logical. Whether to return the threshold. Defaults to FALSE.

Value

A one or two element vector containing the maximum Precision (Positive Predictive Value) for binary data, and the threshold used if requested. Returns -1 in case of errors.


Laurae2/LauraeDS documentation built on May 29, 2019, 2:25 p.m.