From: Kathryn Iverson Date: Fri, 9 Nov 2012 20:44:14 +0000 (-0500) Subject: fixed rf memory issue in constructure X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=commitdiff_plain;h=c9a311f0c621a2e88abf7b2efbe74e9aa1e88a8d fixed rf memory issue in constructure --- diff --git a/forest.cpp b/forest.cpp index 58c7f7e..179ecef 100644 --- a/forest.cpp +++ b/forest.cpp @@ -16,10 +16,10 @@ Forest::Forest(const std::vector < std::vector > 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 }