Changeset 9864


Ignore:
Timestamp:
08/16/10 09:05:44 (14 years ago)
Author:
tbretz
Message:
Added a new member function MRanForestCalc::Train
Location:
trunk/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/Changelog

    r9863 r9864  
    3333   * mgeom/MGeomCamFact.cc:
    3434     - removed obsolete includes
     35
     36   * mranforest/MRanForestCalc.h:
     37     - added new function Train which either calls TrainRegression
     38       or TrainSingleRF
    3539
    3640
  • trunk/Mars/mranforest/MRanForestCalc.h

    r8704 r9864  
    115115    }
    116116
     117    Int_t Train(const MHMatrix &m, Bool_t regression)
     118    {
     119        return regression ? TrainRegression(m) : TrainSingleRF(m);
     120    }
     121
    117122    // Test Interface
    118123    void  SetTestMatrix(MHMatrix *m=0) { fTestMatrix=m; }
Note: See TracChangeset for help on using the changeset viewer.