【问题标题】: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 代表什么吗?我知道它们是实际和预测的结果,但我需要对这个值做进一步的解释。谢谢

【问题讨论】:

    标签: classification svm weka mlp


    【解决方案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”的实际或预测。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-06-20
      • 2017-04-15
      • 2012-11-02
      • 1970-01-01
      • 1970-01-01
      • 2016-04-06
      • 2013-10-22
      相关资源
      最近更新 更多