]> git.donarmstrong.com Git - mothur.git/blobdiff - randomforest.cpp
adding misclassification output file
[mothur.git] / randomforest.cpp
index 6f40b7c1361b3f366cca5971eeb709b0119b2240..d998de63ee8f31df493cd8546ecb5fb00b83311c 100644 (file)
@@ -122,11 +122,7 @@ int RandomForest::getMissclassifications(string filename, map<int, string> 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<int, string> intTo
         return 0;
     }
        catch(exception& e) {
-               m->errorOut(e, "RandomForest", "calcForrestErrorRate");
+               m->errorOut(e, "RandomForest", "getMissclassifications");
                exit(1);
        } 
 }