Learn R Programming

Laurae (version 0.0.0.9001)

get.max_f1: Maximum F1 Score (Precision with Sensitivity harmonic mean)

Description

This function allows to use a custom thresholding method to maximize the Maximum F1 Score (Precision with Sensitivity harmonic mean). A pair of values is returned.

Usage

get.max_f1(preds, labels)

Arguments

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

Value

A two element vector containing the maximum Maximum F1 Score (Precision with Sensitivity harmonic mean) for binary data, and the threshold used.