X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=randomforest.cpp;h=d998de63ee8f31df493cd8546ecb5fb00b83311c;hp=6f40b7c1361b3f366cca5971eeb709b0119b2240;hb=9653d03ec417636b8aa575ef526cb3cf08f19bf4;hpb=69cb74767d8f15d7715653b6eb2119e15b335977 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); } }