Ignore:
Timestamp:
11/02/06 09:00:59 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8022 r8203  
    11/* ======================================================================== *\
     2! $Name: not supported by cvs2svn $:$Id: MRanForest.cc,v 1.26 2006-11-02 08:57:00 tbretz Exp $
     3! --------------------------------------------------------------------------
    24!
    35! *
     
    1719!
    1820!   Author(s): Thomas Hengstebeck 3/2003 <mailto:hengsteb@physik.hu-berlin.de>
     21!   Author(s): Thomas Bretz <mailto:tbretz@astro.uni-wuerzburg.de>
    1922!
    20 !   Copyright: MAGIC Software Development, 2000-2005
     23!   Copyright: MAGIC Software Development, 2000-2006
    2124!
    2225!
     
    498501    // error-estimates from out-of-bag data (oob data):
    499502    //
    500     // For a single tree the events not(!) contained in the bootstrap sample of
    501     // this tree can be used to obtain estimates for the classification error of
    502     // this tree.
    503     // If you take a certain event, it is contained in the oob-data of 1/3 of
    504     // the trees (see comment to ModifyData). This means that the classification error
    505     // determined from oob-data is underestimated, but can still be taken as upper limit.
    506 
     503    // For a single tree the events not(!) contained in the bootstrap
     504    // sample of this tree can be used to obtain estimates for the
     505    // classification error of this tree.
     506    // If you take a certain event, it is contained in the oob-data of
     507    // 1/3 of the trees (see comment to ModifyData). This means that the
     508    // classification error determined from oob-data is underestimated,
     509    // but can still be taken as upper limit.
    507510    Int_t ninbag = 0;
    508511    for (Int_t ievt=0;ievt<numdata;ievt++)
     
    584587        TMath::Sort(numdata,v.GetArray(),isort.GetArray(),kFALSE);
    585588
    586         // this sorts the v[n] in ascending order. isort[n] is the event number
    587         // of that v[n], which is the n-th from the lowest (assume the original
    588         // event numbers are 0,1,...).
     589        // this sorts the v[n] in ascending order. isort[n] is the
     590        // event number of that v[n], which is the n-th from the
     591        // lowest (assume the original event numbers are 0,1,...).
    589592
    590593        // control sorting
     
    608611            const Int_t n2=isort[n+1];
    609612
    610             // FIXME: Copying isort[n] to fDataSort[mvar*numdata] can be accelerated!
     613            // FIXME: Copying isort[n] to fDataSort[mvar*numdata]
     614            // can be accelerated!
    611615            fDataSort[mvar*numdata+n]=n1;
    612616            if(n==0) fDataRang[mvar*numdata+n1]=0;
Note: See TracChangeset for help on using the changeset viewer.