X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=randomforest.hpp;h=30eb43842f8cb280e1e4e95919909885f2702d28;hb=1a968f34ae2d2680eaf189a197d1a21b8dfd6c03;hp=e67a6b920130e50d5070190b92401737a06ab781;hpb=51f21ea4aea22d0c574f6db749c9b3ae7793f765;p=mothur.git diff --git a/randomforest.hpp b/randomforest.hpp old mode 100755 new mode 100644 index e67a6b9..30eb438 --- a/randomforest.hpp +++ b/randomforest.hpp @@ -10,7 +10,7 @@ #define rrf_fs_prototype_randomforest_hpp #include "macros.h" -#include "abstractrandomforest.hpp" +#include "forest.h" #include "decisiontree.hpp" class RandomForest: public Forest { @@ -23,14 +23,14 @@ public: //NOTE:: if you are going to dynamically cast, aren't you undoing the advantage of abstraction. Why abstract at all? //could cause maintenance issues later if other types of Abstract decison trees are created that cannot be cast as a decision tree. - virtual ~RandomForest() { - for (vector::iterator it = decisionTrees.begin(); it != decisionTrees.end(); it++) { - // we know that this is decision tree, so we can do a dynamic_case here - DecisionTree* decisionTree = dynamic_cast(*it); - // calling the destructor by deleting - delete decisionTree; - } - } +// virtual ~RandomForest() { +// for (vector::iterator it = decisionTrees.begin(); it != decisionTrees.end(); it++) { +// // we know that this is decision tree, so we can do a dynamic_case here +// DecisionTree* decisionTree = dynamic_cast(*it); +// // calling the destructor by deleting +// delete decisionTree; +// } +// } int calcForrestErrorRate(); int calcForrestVariableImportance(string);