Changeset 7130 for trunk/MagicSoft/Mars/mranforest/MRanForestGrow.h
- Timestamp:
- 06/03/05 18:02:36 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mranforest/MRanForestGrow.h
r2207 r7130 2 2 #define MARS_MRanForestGrow 3 3 4 ///////////////////////////////////////////////////////////////////////////// 5 // // 6 // MRanForestGrow // 7 // // 8 // Task to grow (train) a random forest // 9 // // 10 ///////////////////////////////////////////////////////////////////////////// 11 12 #ifndef MARS_MTask 13 #include "MTask.h" 4 #ifndef MARS_MRead 5 #include "MRead.h" 14 6 #endif 15 7 … … 19 11 class MRanTree; 20 12 21 class MRanForestGrow : public M Task13 class MRanForestGrow : public MRead 22 14 { 23 15 private: … … 35 27 Int_t PostProcess(); 36 28 29 UInt_t GetEntries() { return fNumTrees; } 30 TString GetFileName() const { return "MRanForestGrow"; } 31 TString GetFullFileName() const { return "MRanForestGrow"; } 32 37 33 public: 38 34 MRanForestGrow(const char *name=NULL, const char *title=NULL); 39 35 40 void SetNumTrees(Int_t n ){ fNumTrees=n;}41 void SetNumTry(Int_t n) { fNumTry=n;}42 void SetNdSize(Int_t n) { fNdSize=n;}36 void SetNumTrees(Int_t n=-1) { fNumTrees=n>0?n:100; } 37 void SetNumTry(Int_t n=-1) { fNumTry =n>0?n: 3; } 38 void SetNdSize(Int_t n=-1) { fNdSize =n>0?n: 1; } 43 39 44 40 ClassDef(MRanForestGrow, 0) // Task to grow a random forest
Note:
See TracChangeset
for help on using the changeset viewer.