From: Kathryn Iverson Date: Thu, 16 May 2013 14:50:21 +0000 (-0400) Subject: cleaned up what is printed to screen X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=commitdiff_plain;h=e1de1a55a2a0f87bd8e2fbedc0b583aee04a4ba4 cleaned up what is printed to screen --- diff --git a/randomforest.cpp b/randomforest.cpp index bb8e2d5..2ae0eb5 100644 --- a/randomforest.cpp +++ b/randomforest.cpp @@ -78,7 +78,7 @@ int RandomForest::calcForrestVariableImportance(string filename) { vector< pair > globalVariableRanks; for (int i = 0; i < globalVariableImportanceList.size(); i++) { - cout << "[" << i << ',' << globalVariableImportanceList[i] << "], "; + //cout << "[" << i << ',' << globalVariableImportanceList[i] << "], "; if (globalVariableImportanceList[i] > 0) { pair globalVariableRank(0, 0.0); globalVariableRank.first = i; @@ -118,7 +118,7 @@ int RandomForest::populateDecisionTrees() { for (int i = 0; i < numDecisionTrees; i++) { if (m->control_pressed) { return 0; } - if (((i+1) % 10) == 0) { m->mothurOut("Creating " + toString(i+1) + " (th) Decision tree\n"); } + if (((i+1) % 100) == 0) { m->mothurOut("Creating " + toString(i+1) + " (th) Decision tree\n"); } // TODO: need to first fix if we are going to use pointer based system or anything else DecisionTree* decisionTree = new DecisionTree(dataSet, globalDiscardedFeatureIndices, OptimumFeatureSubsetSelector(optimumFeatureSubsetSelectionCriteria), treeSplitCriterion, featureStandardDeviationThreshold);