WEKA: how to get the score from classifyInstance?

后端 未结 4 539
悲哀的现实
悲哀的现实 2020-12-19 17:11

I\'m using a FilteredClassifier.classifyInstance() to classify my instances in weka.

I have 2 classes (true and false) and I have many positives, so I actually need

4条回答
  •  [愿得一人]
    2020-12-19 17:25

    distributionForInstance(Instance anInstance) seems right.

    Maybe it is not working for you because the classifier doesn't know you'd need the confidence values? For example for LibSVM on Weka Java, you need to set setProbabilityEstimates to true, in order to use the scores.

提交回复
热议问题