f1_score: Compute the F1 score.

Description Usage Arguments Value Author(s)

View source: R/accuracy.R

Description

Compute the F1 score from a confusion matrix.

Usage

1
f1_score(confusion_matrix)

Arguments

confusion_matrix

A matrix given in sample counts. Columns represent the reference data and rows the results of the classification.

Value

A tibble with precision, recall and f1 score.

Author(s)

Alber Sanchez, alber.ipia@inpe.br


albhasan/sits.prodes documentation built on Sept. 3, 2020, 2:03 p.m.