Weka显示分类的奇怪结果-问号“?”

时间:2019-04-27 14:05:49

标签: weka baseline

我正在尝试在Weka中使用ZeroR算法,以使分类性能达到基准性能。但是,Weka显示的精度和F量测结果很奇怪,它显示的是问号“?”。而不是任何数字。谁知道我该如何解决?

=== Classifier model (full training set) ===

ZeroR predicts class value: label 1

Time taken to build model: 0 seconds

=== Stratified cross-validation ===
=== Summary ===

Correctly Classified Instances         431               53.607  %
Incorrectly Classified Instances       373               46.393  %
Kappa statistic                          0     
Mean absolute error                      0.4974
Root mean squared error                  0.4987
Relative absolute error                100      %
Root relative squared error            100      %
Total Number of Instances              804     

=== Detailed Accuracy By Class ===

                 TP Rate  FP Rate  Precision  Recall   F-Measure  MCC      ROC Area  PRC Area  Class
                 0.000    0.000    ?          0.000    ?          ?        0.488     0.457     label 0
                 1.000    1.000    0.536      1.000    0.698      ?        0.488     0.530     label 1
Weighted Avg.    0.536    0.536    ?          0.536    ?          ?        0.488     0.496     

=== Confusion Matrix ===

   a   b   <-- classified as
   0 373 |   a = label 0
   0 431 |   b = label 1

1 个答案:

答案 0 :(得分:0)

这没错。请注意,您没有分类为“ a”的个案,因此“ a”的精度(等)是不确定的。显然,Weka会传播无法计算的值(就像Excel一样),因此也不会计算整体精度。

您这里遇到的真正问题是,您有一个模型将所有内容归类为“ b”,这不太可能有用。但这就是ZeroR,所以这只是您的起点。