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
Post a Comment