Object x = instanceToArray(instance);
double v;
double[] result = new double[instance.numClasses()];
if (m_ProbabilityEstimates) {
if (m_SVMType != SVMTYPE_L2_LR) {
throw new WekaException("probability estimation is currently only " +
"supported for L2-regularized logistic regression");
}
int[] labels = (int[])invokeMethod(m_Model, "getLabels", null, null);
double[] prob_estimates = new double[instance.numClasses()];