source: branches/Mars_McMismatchStudy/mjtrain/MJTrainRanForest.h@ 17981

Last change on this file since 17981 was 8643, checked in by tbretz, 17 years ago
*** empty log message ***
File size: 748 bytes
Line 
1#ifndef MARS_MJTrainRanForest
2#define MARS_MJTrainRanForest
3
4#ifndef MARS_MJOptimizeBase
5#include "MJOptimizeBase.h"
6#endif
7
8class MTask;
9class MFilter;
10
11class MJTrainRanForest : public MJOptimizeBase
12{
13protected:
14 UShort_t fNumTrees;
15 UShort_t fNdSize;
16 UShort_t fNumTry;
17
18public:
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.