WEKA中每个特定实例的置信度? [英] The confidence level of each specific instance in WEKA?

查看:209
本文介绍了WEKA中每个特定实例的置信度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是WEKA和机器学习的新手.

I'm new to WEKA and machine learning in general.

我有一个约有6500个实例的测试仪.我有一个已经使用训练集进行训练的模型.通过保存的模型运行测试集后,是否可以提取每个特定实例的置信度?所谓置信度,是指表示分类器正确分类特定实例的概率的数值.我想要文件中每个实例的可信度.有没有办法做到这一点?

I have a test set with about 6500 instances. I have a model that has already been trained with a training set. Once I run the test set through the saved model, is there a way I can extract the confidence level of each specific instance? By confidence level, I mean a numerical value that expresses the probability that the classifier has classified a specific instance correctly. I want this confidence number for each instance in the file. Is there a way to do that?

推荐答案

使用命令行界面,使用-p参数(请参见

Using the command line interface, use the -p argument (see here). The example shown in the reference:

java weka.classifiers.bayes.NaiveBayes -K -t soybean-train.arff -T soybean-test.arff -p 0

导致:

0 diaporthe-stem-canker 0.9999672587892333 diaporthe-stem-canker
1 diaporthe-stem-canker 0.9999992614503429 diaporthe-stem-canker
2 diaporthe-stem-canker 0.999998948559035 diaporthe-stem-canker

即预测的阶级和信心.

这篇关于WEKA中每个特定实例的置信度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆