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

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

confusion.matrix.f1.scoreR Documentation

Confusion Matrix Measures - F1 Score

Description

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

Usage

confusion.matrix.f1.score(confusion.matrix)

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

Arguments

confusion.matrix

Matrix - confusion matrix.

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 July 22, 2022, 6:21 a.m.