WEKA中的预测结果是啥意思?

Posted

技术标签:

【中文标题】WEKA中的预测结果是啥意思?【英文标题】:What does it mean by the prediction results in WEKA?WEKA中的预测结果是什么意思? 【发布时间】:2019-08-30 08:45:01 【问题描述】:

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

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

【问题讨论】:

【参考方案1】:

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

这令人困惑,尤其是因为我在文档中看不到这一点。

如果我们加载隐形眼镜文件(Weka 附带),则更容易看到这一点。有 3 个类别需要预测:soft、hard 和 none。

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

=== 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 内部将 soft 编码为 1,hard 编码为 2,none 编码为 3,3:none 表示第三类“none”的实际或预测。

【讨论】:

以上是关于WEKA中的预测结果是啥意思?的主要内容,如果未能解决你的问题,请参考以下文章

weka 中的机器学习分类和预测

Microsoft rxOneClassSVM 的预测分数是啥意思?

pykalman 标准 filtercorrect 模块中的“观察偏移”和“预测状态均值”是啥意思?

随机森林分类 - SciKit 与 Weka 的 100 个特征预测

在 Weka 中将分类预测输出到 CSV——输出文件保存在哪里?

WEKA 中的集群评估是啥?