Description Usage Arguments Value Author(s) See Also Examples
View source: R/confusionmatrix.R
A function to compute the confusion matrix of two classification vectors. It can be useful for evaluating discriminant analysis or other classification systems.
1 | confusionmatrix(obs, predict)
|
obs |
a vector containing the observed classes. |
predict |
a vector with the same length of |
A square matrix containing the number of objects in each class,
observed (rows) and predicted (columns). Diagonal elements
refers to agreement of obs
and predict
.
Anderson Rodrigo da Silva <anderson.agro@hotmail.com>
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.