2 // regularizedrandomforest.cpp
5 // Created by Kathryn Iverson on 11/16/12.
6 // Copyright (c) 2012 Schloss Lab. All rights reserved.
9 #include "regularizedrandomforest.h"
11 RegularizedRandomForest::RegularizedRandomForest(const vector <vector<int> > dataSet,
12 const int numDecisionTrees,
13 const string treeSplitCriterion = "gainratio")
14 // TODO: update ctor according to basic RandomForest Class
18 false, 0.9, true, 0.4, "log2", 0.0) {
19 m = MothurOut::getInstance();
22 int RegularizedRandomForest::calcForrestErrorRate() {
28 m->errorOut(e, "RegularizedRandomForest", "calcForrestErrorRate");
33 int RegularizedRandomForest::calcForrestVariableImportance(string filename) {
39 m->errorOut(e, "RegularizedRandomForest", "calcForrestVariableImportance");
44 int RegularizedRandomForest::populateDecisionTrees() {
50 m->errorOut(e, "RegularizedRandomForest", "populateDecisionTrees");
55 int RegularizedRandomForest::updateGlobalOutOfBagEstimates(DecisionTree *decisionTree) {
60 m->errorOut(e, "RegularizedRandomForest", "updateGlobalOutOfBagEstimates");