X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=forest.h;h=9e9860de61f2ec10e9bf02192856a3224ca46193;hp=78f61b3646c446bd9279eb09986d7e5d4bdc10df;hb=cf9987b67aa49777a4c91c2d21f96e58bf17aa82;hpb=d263f4b3a4f96c672317d317061f6adb72656427 diff --git a/forest.h b/forest.h index 78f61b3..9e9860d 100644 --- a/forest.h +++ b/forest.h @@ -21,8 +21,14 @@ class Forest{ public: // intialization with vectors Forest(const std::vector < std::vector > dataSet, - const int numDecisionTrees, - const string); + const int numDecisionTrees, + const string treeSplitCriterion, + const bool doPruning, + const float pruneAggressiveness, + const bool discardHighErrorTrees, + const float highErrorTreeDiscardThreshold, + const string optimumFeatureSubsetSelectionCriteria, + const float featureStandardDeviationThreshold); virtual ~Forest(){ } virtual int populateDecisionTrees() = 0; virtual int calcForrestErrorRate() = 0; @@ -53,6 +59,14 @@ protected: vector globalDiscardedFeatureIndices; vector globalVariableImportanceList; string treeSplitCriterion; + + bool doPruning; + float pruneAggressiveness; + bool discardHighErrorTrees; + float highErrorTreeDiscardThreshold; + string optimumFeatureSubsetSelectionCriteria; + float featureStandardDeviationThreshold; + // This is a map of each feature to outcome count of each classes // e.g. 1 => [2 7] means feature 1 has 2 outcome of 0 and 7 outcome of 1 map > globalOutOfBagEstimates;