Skip to content

Instantly share code, notes, and snippets.

View hack-r's full-sized avatar
💭
Fighting the Evil Power

Jason M hack-r

💭
Fighting the Evil Power
View GitHub Profile
String[] outPut = new String[2];
for (int j = 0; j < newTest.size(); j++){
double[] predictionDistribution = clf.distributionForInstance(newTest.instance(j));
for(int i=0; i<predictionDistribution.length; i=i+1){
outPut[i] = "Probability of class "+
newTest.classAttribute().value(i)+
" : "+Double.toString(predictionDistribution[i]);