confusion.matrix.f1.score.simple: Confusion Matrix Measures - F1 Score

Description Usage Arguments Value

View source: R/confusion.matrix.f1.score.simple.R

Description

Calculate F1 Score, defined as 2*TP / (2*TP+FP+FN), for a given confusion matrix.

Usage

1
2
3
4
5
confusion.matrix.f1.score.simple(
  true.positive = 1,
  false.positive = 0,
  false.negative = 0
)

Arguments

true.positive

Scalar - Cases identified as true positive

false.positive

Scalar - Cases identified as false positive

false.negative

Scalar - Cases identified as false negative

Value

A scalar with computed value.


burrm/lolcat documentation built on Oct. 13, 2021, 11:35 p.m.