From 9653d03ec417636b8aa575ef526cb3cf08f19bf4 Mon Sep 17 00:00:00 2001 From: kdiverson <> Date: Wed, 11 Sep 2013 14:42:26 -0400 Subject: [PATCH] adding misclassification output file --- randomforest.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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); } } -- 2.39.2