validation - Weka - Update Instances during evaluation -


i using weka api test algorithm. during evaluation, want update of instances (feature vectors) after evaluate each instance. here method now

    for(int = 0; < testdataset.numinstances(); i++) {         // current validation instance         instance curinst = testdataset.instance(i);         // actual class index         int actualclassidx = (int)curinst.classvalue();         // predicted class index         int predclassidx = (int)bestclassifier.classifyinstance(curinst);          if(actualclassidx == predclassidx) {             numcorrect++;         }         // update validation dataset         updatefeatures(testdataset);     }     double accuracy = (double)numcorrect / testdataset.numinstances();     system.out.println("testing accuracy = " + accuracy * 100 + "%"); 

this works, however, want use things evaluation object me because need more statistic data (e.g: confusion matrix). there sufficient way achieve that?


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -