WEKA + Java: get class probabilities -


given following binary classifier:

libsvm classifier = new libsvm(); classifier.setcost(cost); classifier.setgamma(gamma); 

performing following operation returns label instance:

double classid = classifier.classifyinstance(instance); 

however, obtain degree of confidence classification (i.e., probability instance in positive class + probability instance in negative class).

how can obtain information? possible have it?

thanks.

have considered using setprobabilityestimates(), sets flag generating probability estimates?

there option, -b, in setoptions() may generate these probability estimates.


Comments

Popular posts from this blog

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -