我想把我放在混淆矩阵中的数据可视化.有没有一个函数我可以简单地把混淆矩阵和它可视化它(绘制它)?
我想做的例子(Matrix $ nnet只是一个包含分类结果的表):
Confusion$nnet <- confusionMatrix(Matrix$nnet)
plot(Confusion$nnet)
Run Code Online (Sandbox Code Playgroud)
我的混乱$ nnet $表看起来像这样:
prediction (I would also like to get rid of this string, any help?)
1 2
1 42 6
2 8 28
Run Code Online (Sandbox Code Playgroud) 我想知道如果有人想使用GridFS存储文件,最大文件大小是多少?我找不到任何信息,所以任何帮助将不胜感激.
我正在使用插入符包来使用confusionMatrix 函数。该函数对于 2x2(或 5x5 等)矩阵完美地工作。例子:
表格1:
1 2
1 25 15
2 8 33
confusionMatrix(Table1) -> works!
Run Code Online (Sandbox Code Playgroud)
但如果我有一个不同大小的桌子:
表2:
5 6 7
3 1 1 0
4 8 5 0
5 153 57 3
6 57 105 19
7 6 27 27
8 0 3 6
confusionMatrix(Table2) -> Won't work!
Error: Error in !all.equal(nrow(data), ncol(data)) : invalid argument type
Run Code Online (Sandbox Code Playgroud)
由于我被迫使用 fusionMatrix 函数,如何绕过这个麻烦?