Description Usage Arguments Value See Also Examples
Compute measures of accuracy such as precision, recall, and F1 from a given confusion matrix.
1 | GetPrecision(confusion.matrix)
|
confusion.matrix |
a confusion matrix. |
An (r+1)-by-3 matrix when the input is an r-by-r confusion matrix.
CheckNonNumeric(), FetchBuddle(), MakeConfusionMatrix(), OneHot2Label(), Split2TrainTest(), TrainBuddle()
1 2 3 4 5 6 7 8 9 10 11 12 | data(iris)
Label = c("setosa", "versicolor", "virginica")
predicted.label = c("setosa", "setosa", "virginica", "setosa", "versicolor", "versicolor")
true.label = c("setosa", "virginica", "versicolor","setosa", "versicolor", "virginica")
confusion.matrix = MakeConfusionMatrix(predicted.label, true.label, Label)
precision = GetPrecision(confusion.matrix)
confusion.matrix
precision
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.