Counts delegated to morie_geron_confusion_matrix().
Examples
V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_geron_f1_score(V, V)
#> $f1
#> [1] 1
#>
#> $precision
#> [1] 1
#>
#> $recall
#> [1] 1
#>
#> $macro_f1
#> [1] 0.8888889
#>
#> $per_class_f1
#> [1] 0 1 1 1 1 1 1 1 1
#>
#> $confusion_matrix
#> [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9]
#> [1,] 0 0 0 0 0 0 0 0 0
#> [2,] 0 1 0 0 0 0 0 0 0
#> [3,] 0 0 1 0 0 0 0 0 0
#> [4,] 0 0 0 1 0 0 0 0 0
#> [5,] 0 0 0 0 1 0 0 0 0
#> [6,] 0 0 0 0 0 1 0 0 0
#> [7,] 0 0 0 0 0 0 1 0 0
#> [8,] 0 0 0 0 0 0 0 1 0
#> [9,] 0 0 0 0 0 0 0 0 1
#>
#> $positive_class
#> [1] 1
#>
#> $estimate
#> [1] 1
#>
#> $n
#> [1] 8
#>
