Line | |
---|
1 | #ifndef MARS_MJTrainRanForest
|
---|
2 | #define MARS_MJTrainRanForest
|
---|
3 |
|
---|
4 | #ifndef MARS_MJOptimizeBase
|
---|
5 | #include "MJOptimizeBase.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MTask;
|
---|
9 | class MFilter;
|
---|
10 |
|
---|
11 | class MJTrainRanForest : public MJOptimizeBase
|
---|
12 | {
|
---|
13 | protected:
|
---|
14 | UShort_t fNumTrees;
|
---|
15 | UShort_t fNdSize;
|
---|
16 | UShort_t fNumTry;
|
---|
17 |
|
---|
18 | public:
|
---|
19 | MJTrainRanForest()
|
---|
20 | {
|
---|
21 | fNumTrees = 100; //100
|
---|
22 | fNumTry = 0; //3 0 means: in MRanForest estimated best value will be calculated
|
---|
23 | fNdSize = 1; //1
|
---|
24 | }
|
---|
25 |
|
---|
26 | void SetNumTrees(UShort_t n=100) { fNumTrees = n; }
|
---|
27 | void SetNdSize(UShort_t n=5) { fNdSize = n; }
|
---|
28 | void SetNumTry(UShort_t n=0) { fNumTry = n; }
|
---|
29 |
|
---|
30 | ClassDef(MJTrainRanForest, 0)//Base class for Random Forest training classes
|
---|
31 | };
|
---|
32 |
|
---|
33 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.