WEKA的预测结果意味着什么?

问题描述 投票:0回答:1

我在WEKA中使用SVM和MLP进行分类。我设法让WEKA在csv文件中生成结果。但是,我无法理解显示的预测结果。

例如,实际结果2:1,预测结果1:0。有人可以解释2:1和1:0代表什么?我知道它们是实际和预测的结果,但我需要对这些值进一步解释。谢谢

classification svm weka mlp
1个回答
0
投票

在2:1中,2是Weka中的类的编号(不是来自您的数据文件),1是类预测。您的班级必须是1和0。

这很令人困惑,特别是因为我看不出这在文档中很容易找到。

如果我们加载隐形眼镜文件(随Weka一起提供),则更容易看到这一点。有三个类可以预测:软,硬,没有。

所以,在预测输出中,我们看到了这一点

=== Predictions on test data ===

inst#,actual,predicted,error,prediction
1,2:hard,2:hard,,1
2,3:none,3:none,,1
3,1:soft,1:soft,,0.8
1,2:hard,2:hard,,0.6
2,3:none,3:none,,1
3,1:soft,1:soft,,0.8
1,2:hard,3:none,+,1
2,3:none,3:none,,1
3,1:soft,1:soft,,0.8
1,2:hard,2:hard,,0.6
2,3:none,3:none,,1
3,1:soft,1:soft,,0.8
1,3:none,3:none,,1
2,3:none,2:hard,+,0.8
1,3:none,3:none,,1
2,3:none,3:none,,1
1,3:none,3:none,,1
2,3:none,3:none,,1
1,3:none,3:none,,1
2,3:none,3:none,,1
1,3:none,2:hard,+,0.8
2,3:none,1:soft,+,1
1,3:none,3:none,,1
2,1:soft,1:soft,,0.8

很容易看出Weka内部编码为1,硬编码为2,无编码为3,3:无意味着实际或预测第三类,“无”。

© www.soinside.com 2019 - 2024. All rights reserved.