From e1de1a55a2a0f87bd8e2fbedc0b583aee04a4ba4 Mon Sep 17 00:00:00 2001 From: Kathryn Iverson Date: Thu, 16 May 2013 10:50:21 -0400 Subject: [PATCH] cleaned up what is printed to screen --- randomforest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2