source: trunk/MagicSoft/Mars/mjtrain/MJTrainRanForest.h@ 7535

Last change on this file since 7535 was 7412, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 1.0 KB
Line 
1#ifndef MARS_MJTrainRanForest
2#define MARS_MJTrainRanForest
3
4#ifndef MARS_MJob
5#include "MJob.h"
6#endif
7
8class MFilter;
9
10class MJTrainRanForest : public MJob
11{
12protected:
13 Bool_t fDebug;
14
15 TList fRules;
16
17 TList fPreCuts;
18 TList fTrainCuts;
19 TList fTestCuts;
20
21 Bool_t WriteDisplay(const char *fname) const;
22
23 void AddCut(TList &l, const char *rule);
24 void AddCut(TList &l, MFilter *f);
25
26public:
27 MJTrainRanForest() : fDebug(kFALSE) { }
28
29 void SetDebug(Bool_t b=kTRUE) { fDebug = b; }
30
31 void AddPreCut(const char *rule) { AddCut(fPreCuts, rule); }
32 void AddPreCut(MFilter *f) { AddCut(fPreCuts, f); }
33
34 void AddTrainCut(const char *rule) { AddCut(fTrainCuts, rule); }
35 void AddTrainCut(MFilter *f) { AddCut(fTrainCuts, f); }
36
37 void AddTestCut(const char *rule) { AddCut(fTestCuts, rule); }
38 void AddTestCut(MFilter *f) { AddCut(fTestCuts, f); }
39
40 Int_t AddParameter(const char *rule);
41
42 ClassDef(MJTrainRanForest, 0)//Base class for Random Forest training classes
43};
44
45#endif
Note: See TracBrowser for help on using the repository browser.