confusion_stats: Compute confusion statistics (recall, precision, etc.)

Description Usage Arguments See Also Examples

Description

Compute confusion statistics (recall, precision, etc.)

Usage

1
confusion_stats(x, sort.by = NULL)

Arguments

x

confusion matrix (table class with predictions as line and validated, true classes as columns), as returned by confusion_matrix()

sort.by

column to sort the result by (usually "recall", "precision", or "F1"); can be abbreviated

See Also

Other confusion statistics functions: autoplot.table, blank_diagonal, confusion_matrix

Examples

1
2
3
4
5
n <- 50
pred <- sample(letters[1:5], size=n, replace=TRUE)
valid <- sample(letters[2:8], size=n, replace=TRUE)
x <- confusion_matrix(pred, valid)
confusion_stats(x)

jiho/zooprocessr documentation built on May 19, 2019, 10:31 a.m.