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,const int numDecisionTrees,
12 const string treeSplitCriterion = "informationGain") : Forest(dataSet, numDecisionTrees, treeSplitCriterion) {
13 m = MothurOut::getInstance();
16 int RegularizedRandomForest::calcForrestErrorRate() {
22 m->errorOut(e, "RegularizedRandomForest", "calcForrestErrorRate");
27 int RegularizedRandomForest::calcForrestVariableImportance(string filename) {
33 m->errorOut(e, "RegularizedRandomForest", "calcForrestVariableImportance");
38 int RegularizedRandomForest::populateDecisionTrees() {
44 m->errorOut(e, "RegularizedRandomForest", "populateDecisionTrees");
49 int RegularizedRandomForest::updateGlobalOutOfBagEstimates(DecisionTree *decisionTree) {
54 m->errorOut(e, "RegularizedRandomForest", "updateGlobalOutOfBagEstimates");