WEKA中每个特定实例的置信度? [英] The confidence level of each specific instance in 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?
推荐答案
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屋!