f1: F1 score

View source: R/class_error.R

f1R Documentation

F1 score

Description

Calculate the F1 score for classification:

Usage

f1(precision, recall)

Arguments

precision

Float [0, 1]: Precision a.k.a. Positive Predictive Value

recall

Float [0, 1]: Recall a.k.a. Sensitivity

Details

F1 = 2 \frac{Recall \cdot Precision}{Recall + Precision}

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on Sept. 30, 2024, 4:13 p.m.