53 const std::vector<Interval*>& ranges,
71 "If > 0: new points are generated according to Gauss around best value and with \"Sigma\" in units of interval length" );
88 Log() << kHEADER <<
"<MCFitter> Sampling, please be patient ..." <<
Endl;
92 Log() << kFATAL <<
"<Run> Mismatch in number of parameters: "
99 std::vector<Double_t> parameters;
100 std::vector<Double_t> bestParameters;
105 std::vector<TMVA::GeneticRange*> rndRanges;
108 std::vector< TMVA::Interval* >::const_iterator rIt;
112 val = rndRanges.back()->Random();
113 parameters.push_back( val );
114 bestParameters.push_back( val );
117 std::vector<Double_t>::iterator parIt;
118 std::vector<Double_t>::iterator parBestIt;
129 parIt = parameters.begin();
131 parBestIt = bestParameters.begin();
132 for (std::vector<TMVA::GeneticRange*>::iterator rndIt = rndRanges.begin(); rndIt<rndRanges.end(); ++rndIt) {
133 (*parIt) = (*rndIt)->Random(
kTRUE, (*parBestIt),
fSigma );
139 for (std::vector<TMVA::GeneticRange*>::iterator rndIt = rndRanges.begin(); rndIt<rndRanges.end(); ++rndIt) {
140 (*parIt) = (*rndIt)->Random();
149 if (estimator < bestFit || sample==0) {
151 bestParameters.swap( parameters );
157 pars.swap( bestParameters );
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t target
OptionBase * DeclareOptionRef(T &ref, const TString &name, const TString &desc="")
virtual void ParseOptions()
options parser
Double_t EstimatorFunction(std::vector< Double_t > ¶meters)
estimator function interface for fitting
FitterBase(IFitterTarget &target, const TString &name, const std::vector< TMVA::Interval * > ranges, const TString &theOption)
constructor
const char * GetName() const
Returns name of object.
MsgLogger & Log() const
message logger
Double_t Run()
estimator function interface for fitting
const std::vector< TMVA::Interval * > fRanges
Range definition for genetic algorithm.
Interface for a fitter 'target'.
Fitter using Monte Carlo sampling of parameters.
UInt_t fSeed
Seed for the random generator (0 takes random seeds)
void SetParameters(Int_t cycles)
set MC fitter configuration parameters
Double_t fSigma
new samples are generated randomly with a gaussian probability with fSigma around the current best va...
MCFitter(IFitterTarget &target, const TString &name, const std::vector< TMVA::Interval * > &ranges, const TString &theOption)
constructor
void DeclareOptions()
Declare MCFitter options.
Int_t fSamples
number of MC samples
Timing information for training and evaluation of MVA methods.
TString GetElapsedTime(Bool_t Scientific=kTRUE)
returns pretty string with elapsed time
void DrawProgressBar(Int_t, const TString &comment="")
draws progress bar in color or B&W caution:
Random number generator class based on M.
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).
create variable transformations
MsgLogger & Endl(MsgLogger &ml)