I am using the weka java API, I can get the predicted class label after training on the training set.
double pred = fc.classifyInstance(test.instance(i));
But I want to know the confidence probability of the class label, what function should I use ? In the GUI I can select the output prediction to a txt file and can get the probability easily, but I want to know how to get through the code. I am using J48() classifier.