]> git.donarmstrong.com Git - mothur.git/commitdiff
adding misclassification output file
authorkdiverson <>
Wed, 11 Sep 2013 18:42:26 +0000 (14:42 -0400)
committerkd.iverson@gmail.com <>
Wed, 11 Sep 2013 18:42:26 +0000 (14:42 -0400)
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) {             
             int realOutcome = dataSet[indexOfSample][numFeatures];
                                    
             if (majorityVotedOutcome != realOutcome) {             
-                //write to file
-                //dataSet[indexOfSample][];
-                
                 out << names[indexOfSample] << "\t" << intToTreatmentMap[majorityVotedOutcome] << "\t" << intToTreatmentMap[realOutcome] << endl;
                 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) {
         return 0;
     }
        catch(exception& e) {
-               m->errorOut(e, "RandomForest", "calcForrestErrorRate");
+               m->errorOut(e, "RandomForest", "getMissclassifications");
                exit(1);
        } 
 }
                exit(1);
        } 
 }