Description Usage Arguments Value Author(s) Examples
Compute classification confusion matrix and accuracy
1 2 | confusion(obs, pred)
confusion2acc(ct)
|
obs |
A vector of observed classes. |
pred |
A vector of predicted classes. |
ct |
A table retruned from |
confusion
return a matrix of cross classification counts.
confusion
return a overall classification accuracy.
Shengqiao Li<lishengqiao@yahoo.com>
1 2 3 4 | obs<- rep(0:1, each =5);
pre<- c(obs[3:10], obs[1:2])
confusion(obs, pre)
confusion2acc( confusion(obs, pre))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.