-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathExtraTTrees.h
47 lines (39 loc) · 1.12 KB
/
ExtraTTrees.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* ExtraTTrees.h
* TTree
*
* Created by Vincent Botta on 11/03/09.
* Copyright 2009 University of Liège. All rights reserved.
*
*/
#include "GroupLearner.h"
#include "ClassicNodeTree.h"
class ExtraTTrees : public GroupLearner {
private:
unsigned int nbtree;
ClassicNodeTree **term;
unsigned int k;
public:
ExtraTTrees(DB *db, int t = 1, int k = 0, int n = 1);
~ExtraTTrees();
double learn();
Result test();
Result test(unsigned int obj);
void test(Result &result, unsigned int obj);
Result test(std::vector<unsigned int> *set);
void computeVimp();
//void computeVimp(std::vector<float> &vim);
void computeVimp(std::vector<float> &vim, std::vector<unsigned int> &set);
void computeGroupVimp();
//void computeGroupVimp(std::vector<float> &gim);
void computeGroupVimp(std::vector<float> &gim, std::vector<unsigned int> &set);
void print(FILE* out = stdout) const {
GroupLearner::print(out);
fprintf(out,"EXTRATTREE\n");
fprintf(out,"NbTree = %d\n",nbtree);
//for (int i = 0 ; i < nbtree ; ++i) {
// fprintf(out,"___________________TREE %d INFOS\n",i+1);
// term[i]->print(out);
//}
}
};