X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=randomforest.cpp;fp=randomforest.cpp;h=2ae0eb595c1c8d5f989c44a5e561a0ff3dac2d2b;hb=e1de1a55a2a0f87bd8e2fbedc0b583aee04a4ba4;hp=bb8e2d565cb6348594b7c3e5cd229dd40ac37d76;hpb=c2f279a697c7267b5d91882087ab91f7e6653aa2;p=mothur.git 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);