]> git.donarmstrong.com Git - mothur.git/blob - regularizedrandomforest.cpp
changes while testing
[mothur.git] / regularizedrandomforest.cpp
1 //
2 //  regularizedrandomforest.cpp
3 //  Mothur
4 //
5 //  Created by Kathryn Iverson on 11/16/12.
6 //  Copyright (c) 2012 Schloss Lab. All rights reserved.
7 //
8
9 #include "regularizedrandomforest.h"
10
11 RegularizedRandomForest::RegularizedRandomForest(const vector <vector<int> > dataSet,const int numDecisionTrees,
12                            const string treeSplitCriterion = "informationGain") : Forest(dataSet, numDecisionTrees, treeSplitCriterion) {
13     m = MothurOut::getInstance();
14 }
15
16 int RegularizedRandomForest::calcForrestErrorRate() {
17     //
18     try {
19         return 0;
20     }
21     catch(exception& e) {
22                 m->errorOut(e, "RegularizedRandomForest", "calcForrestErrorRate");
23                 exit(1);
24         }
25 }
26
27 int RegularizedRandomForest::calcForrestVariableImportance(string filename) {
28     //
29     try {
30         return 0;
31     }
32     catch(exception& e) {
33                 m->errorOut(e, "RegularizedRandomForest", "calcForrestVariableImportance");
34                 exit(1);
35         }
36 }
37
38 int RegularizedRandomForest::populateDecisionTrees() {
39     //
40     try {
41         return 0;
42     }
43     catch(exception& e) {
44                 m->errorOut(e, "RegularizedRandomForest", "populateDecisionTrees");
45                 exit(1);
46         }
47 }
48
49 int RegularizedRandomForest::updateGlobalOutOfBagEstimates(DecisionTree *decisionTree) {
50     try {
51         return 0;
52     }
53     catch(exception& e) {
54                 m->errorOut(e, "RegularizedRandomForest", "updateGlobalOutOfBagEstimates");
55                 exit(1);
56         }
57 }