int probability; /* do probability estimates */ 1 do,0 not }; 2)svm_predict_probability函数与svm_predict函数在接口上只有第三个参数prob_estimates不同,其余两个都相同,所以这里只说明第三个参数的作用。prob_estimates里实际上存放的就是估计出的概率,比如说m分类问题,那prob_estimates就是一个1*m列的...
svm.svm_predict_probability(model, xSVM, prob_estimates); 代码示例来源:origin: org.apache.ctakes/ctakes-coreference public double predict(svm_node[] vec, TreebankNode path){ double[] probs = new double[2]; svm.svm_predict_probability(svmCls, vec, probs); return probs[clsIndex]; } } ...