Line | |
---|
1 | #ifndef MARS_MJTrainSeparation
|
---|
2 | #define MARS_MJTrainSeparation
|
---|
3 |
|
---|
4 | #ifndef MARS_MJTrainRanForest
|
---|
5 | #include "MJTrainRanForest.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef MARS_MDataSet
|
---|
9 | #include "MDataSet.h"
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | class MJTrainSeparation : public MJTrainRanForest
|
---|
13 | {
|
---|
14 | private:
|
---|
15 | MDataSet fDataSetTest;
|
---|
16 | MDataSet fDataSetTrain;
|
---|
17 |
|
---|
18 | UInt_t fNumTrainOn;
|
---|
19 | UInt_t fNumTrainOff;
|
---|
20 |
|
---|
21 | public:
|
---|
22 | MJTrainSeparation() { }
|
---|
23 |
|
---|
24 | void SetDataSetTrain(const MDataSet &ds, UInt_t non, UInt_t noff)
|
---|
25 | {
|
---|
26 | ds.Copy(fDataSetTrain);
|
---|
27 | fNumTrainOn = non;
|
---|
28 | fNumTrainOff = noff;
|
---|
29 | }
|
---|
30 | void SetDataSetTest(const MDataSet &ds)
|
---|
31 | {
|
---|
32 | ds.Copy(fDataSetTest);
|
---|
33 | }
|
---|
34 |
|
---|
35 | Bool_t Train(const char *out);
|
---|
36 |
|
---|
37 | ClassDef(MJTrainSeparation, 0)//Class to train Random Forest gamma-/background-separation
|
---|
38 | };
|
---|
39 |
|
---|
40 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.