52 const std::vector<Interval*>& ranges,
68 DeclareOptionRef( fSamples = 100000,
"SampleSize",
"Number of Monte Carlo events in toy sample" );
69 DeclareOptionRef( fSigma = -1.0,
"Sigma",
70 "If > 0: new points are generated according to Gauss around best value and with \"Sigma\" in units of interval length" );
71 DeclareOptionRef( fSeed = 100,
"Seed",
"Seed for the random generator (0 takes random seeds)" );
87 Log() << kHEADER <<
"<MCFitter> Sampling, please be patient ..." <<
Endl;
90 if ((
Int_t)pars.size() != GetNpars())
91 Log() << kFATAL <<
"<Run> Mismatch in number of parameters: "
92 << GetNpars() <<
" != " << pars.size() <<
Endl;
96 if (fIPyMaxIter) *fIPyMaxIter = fSamples;
98 std::vector<Double_t> parameters;
104 std::vector<TMVA::GeneticRange*>
rndRanges;
107 std::vector< TMVA::Interval* >::const_iterator
rIt;
112 parameters.push_back( val );
116 std::vector<Double_t>::iterator
parIt;
117 std::vector<Double_t>::iterator
parBestIt;
124 if (fIPyCurrentIter) *fIPyCurrentIter =
sample;
125 if (fExitFromTraining && *fExitFromTraining)
break;
128 parIt = parameters.begin();
139 (*parIt) = (*rndIt)->Random();
145 estimator = EstimatorFunction( parameters );
159 Log() << kINFO <<
"Elapsed time: " <<
timer.GetElapsedTime()
int Int_t
Signed integer 4 bytes (int)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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
const_iterator begin() const
const_iterator end() const
virtual void ParseOptions()
options parser
Base class for TMVA fitters.
Double_t Run()
estimator function interface for fitting
Range definition for genetic algorithm.
Interface for a fitter 'target'.
void SetParameters(Int_t cycles)
set MC fitter configuration parameters
void DeclareOptions() override
Declare MCFitter options.
MCFitter(IFitterTarget &target, const TString &name, const std::vector< TMVA::Interval * > &ranges, const TString &theOption)
constructor
Timing information for training and evaluation of MVA methods.
Random number generator class based on M.
create variable transformations
MsgLogger & Endl(MsgLogger &ml)