From: kdiverson <> Date: Wed, 11 Sep 2013 18:42:26 +0000 (-0400) Subject: adding misclassification output file X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=commitdiff_plain;h=9653d03ec417636b8aa575ef526cb3cf08f19bf4 adding misclassification output file --- diff --git a/randomforest.cpp b/randomforest.cpp index 6f40b7c..d998de6 100644 --- a/randomforest.cpp +++ b/randomforest.cpp @@ -122,11 +122,7 @@ int RandomForest::getMissclassifications(string filename, map intTo int realOutcome = dataSet[indexOfSample][numFeatures]; if (majorityVotedOutcome != realOutcome) { - //write to file - //dataSet[indexOfSample][]; - out << names[indexOfSample] << "\t" << intToTreatmentMap[majorityVotedOutcome] << "\t" << intToTreatmentMap[realOutcome] << endl; - //out << m->currentBinLabels[(int)globalVariableRanks[i].first] << '\t' << globalVariableImportanceList[globalVariableRanks[i].first] << endl; } } @@ -135,7 +131,7 @@ int RandomForest::getMissclassifications(string filename, map intTo return 0; } catch(exception& e) { - m->errorOut(e, "RandomForest", "calcForrestErrorRate"); + m->errorOut(e, "RandomForest", "getMissclassifications"); exit(1); } }