Changeset 8203 for trunk/MagicSoft/Mars/mranforest/MRanForest.cc
- Timestamp:
- 11/02/06 09:00:59 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mranforest/MRanForest.cc
r8022 r8203 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MRanForest.cc,v 1.26 2006-11-02 08:57:00 tbretz Exp $ 3 ! -------------------------------------------------------------------------- 2 4 ! 3 5 ! * … … 17 19 ! 18 20 ! Author(s): Thomas Hengstebeck 3/2003 <mailto:hengsteb@physik.hu-berlin.de> 21 ! Author(s): Thomas Bretz <mailto:tbretz@astro.uni-wuerzburg.de> 19 22 ! 20 ! Copyright: MAGIC Software Development, 2000-200 523 ! Copyright: MAGIC Software Development, 2000-2006 21 24 ! 22 25 ! … … 498 501 // error-estimates from out-of-bag data (oob data): 499 502 // 500 // For a single tree the events not(!) contained in the bootstrap sample of501 // this tree can be used to obtain estimates for the classification error of502 // this tree.503 // If you take a certain event, it is contained in the oob-data of 1/3 of504 // the trees (see comment to ModifyData). This means that the classification error505 // 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. 507 510 Int_t ninbag = 0; 508 511 for (Int_t ievt=0;ievt<numdata;ievt++) … … 584 587 TMath::Sort(numdata,v.GetArray(),isort.GetArray(),kFALSE); 585 588 586 // this sorts the v[n] in ascending order. isort[n] is the event number587 // of that v[n], which is the n-th from the lowest (assume the original588 // 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,...). 589 592 590 593 // control sorting … … 608 611 const Int_t n2=isort[n+1]; 609 612 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! 611 615 fDataSort[mvar*numdata+n]=n1; 612 616 if(n==0) fDataRang[mvar*numdata+n1]=0;
Note:
See TracChangeset
for help on using the changeset viewer.