public class ConfusionMatrix extends Iced
> l = c("A", "B", "C")
> a = factor(c("A", "B", "C"), levels=l)
> b = factor(c("A", "B", "A"), levels=l)
> confusionMatrix(a,b)
Reference
Prediction A B C
A 1 0 0
B 0 1 0
C 1 0 0
Note: By default we report zero rows and columns.
| Modifier and Type | Field and Description |
|---|---|
Frame |
actual |
long[][] |
cm |
double |
mse |
Frame |
predict |
Vec |
vactual |
Vec |
vpredict |
| Constructor and Description |
|---|
ConfusionMatrix() |
| Modifier and Type | Method and Description |
|---|---|
void |
execImpl() |
void |
toASCII(java.lang.StringBuilder sb) |
clone, frozenType, read_impl, read, readExternal, readJSON_impl, readJSON, write_impl, write, writeExternal, writeHTML_impl, writeHTML, writeJSON_impl, writeJSON