]> git.donarmstrong.com Git - mothur.git/blobdiff - forest.cpp
added modify names parameter to set.dir
[mothur.git] / forest.cpp
index 58c7f7e7d4d780b54d4c757e4653a368a60f6a74..179ecef19d26de2a61f68776445dfdfc72132f07 100644 (file)
@@ -16,10 +16,10 @@ Forest::Forest(const std::vector < std::vector<int> > dataSet,
 numDecisionTrees(numDecisionTrees),
 numSamples((int)dataSet.size()),
 numFeatures((int)(dataSet[0].size() - 1)),
-globalDiscardedFeatureIndices(getGlobalDiscardedFeatureIndices()),
 globalVariableImportanceList(numFeatures, 0),
 treeSplitCriterion(treeSplitCriterion) {
     m = MothurOut::getInstance();
+    globalDiscardedFeatureIndices = getGlobalDiscardedFeatureIndices();
     // TODO: double check if the implemenatation of 'globalOutOfBagEstimates' is correct
 }