]> git.donarmstrong.com Git - mothur.git/blobdiff - regularizedrandomforest.cpp
changed random forest output filename
[mothur.git] / regularizedrandomforest.cpp
index 9fa19aba00ceb68353f32936c21962e14791a173..0a33f4e3ba6ed2a79a301c2db5c8254ae153784c 100644 (file)
@@ -8,8 +8,14 @@
 
 #include "regularizedrandomforest.h"
 
-RegularizedRandomForest::RegularizedRandomForest(const vector <vector<int> > dataSet,const int numDecisionTrees,
-                           const string treeSplitCriterion = "informationGain") : Forest(dataSet, numDecisionTrees, treeSplitCriterion) {
+RegularizedRandomForest::RegularizedRandomForest(const vector <vector<int> > dataSet,
+                                                 const int numDecisionTrees,
+                                                 const string treeSplitCriterion = "gainratio")
+                        // TODO: update ctor according to basic RandomForest Class
+                      : Forest(dataSet,
+                               numDecisionTrees,
+                               treeSplitCriterion,
+                               false, 0.9, true, 0.4, "log2", 0.0) {
     m = MothurOut::getInstance();
 }