]> git.donarmstrong.com Git - mothur.git/commitdiff
adding pretty confusion matrix
authorkdiverson <>
Wed, 11 Sep 2013 15:28:17 +0000 (11:28 -0400)
committerkd.iverson@gmail.com <>
Wed, 11 Sep 2013 15:28:17 +0000 (11:28 -0400)
classifysharedcommand.cpp

index 482a3eb7969007ba592c5e061c455be24d0cae55..c79e0e8f2aefcc39c7358fd7040681a8e0e7f924 100755 (executable)
@@ -375,10 +375,10 @@ void ClassifySharedCommand::processSharedAndDesignData(vector<SharedRAbundVector
         
         randomForest.populateDecisionTrees();
         randomForest.calcForrestErrorRate();
-        //randomForest.printConfusionMatrix(intToTreatmentMap);
+        randomForest.printConfusionMatrix(intToTreatmentMap);
         
         map<string, string> variables; 
-        variables["[filename]"] = outputDir + m->getRootName(m->getSimpleName(sharedfile)) + ".RF.";
+        variables["[filename]"] = outputDir + m->getRootName(m->getSimpleName(sharedfile)) + "RF.";
         variables["[distance]"] = lookup[0]->getLabel();
         string filename = getOutputFileName("summary", variables);
         outputNames.push_back(filename); outputTypes["summary"].push_back(filename);