Ignore:
Timestamp:
05/03/06 11:54:00 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mranforest/MRanForest.cc

    r7684 r7685  
    331331    fDataRang.Reset(0);
    332332
    333     if(fWeight.GetSize()!=numdata)
     333    Bool_t useweights = fWeight.GetSize()==numdata;
     334    if (!useweights)
    334335    {
    335336        fWeight.Set(numdata);
     
    390391    *fLog << inf << endl;
    391392    *fLog << "Following input for the tree growing are used:"<<endl;
     393    *fLog << " Forest type     : "<<(fClassify?"classification":"regression")<<endl;
    392394    *fLog << " Number of Trees : "<<fNumTrees<<endl;
    393395    *fLog << " Number of Trials: "<<(fNumTry==0?tryest:fNumTry)<<(fNumTry==0?" (auto)":"")<<endl;
    394396    *fLog << " Final Node size : "<<fNdSize<<endl;
    395397    *fLog << " Using Grid      : "<<(fGrid.GetSize()>0?"Yes":"No")<<endl;
    396     *fLog << " Using Weights   : "<<(fWeight.GetSize()>0?"Yes":"No")<<endl;
     398    *fLog << " Using Weights   : "<<(useweights?"Yes":"No")<<endl;
    397399    *fLog << " Number of Events: "<<numdata<<endl;
    398400    *fLog << " Number of Params: "<<dim<<endl;
Note: See TracChangeset for help on using the changeset viewer.