53 const std::vector<Interval*>& ranges,
79 fInitialTemperature = 1
e+6;
80 fMinTemperature = 1
e-6;
82 fTemperatureScale = 1.0;
84 fTemperatureAdaptiveStep = 0.009875;
85 fKernelTemperatureS =
"IncAdaptive";
87 fUseDefaultTemperature =
kFALSE;
89 DeclareOptionRef(fMaxCalls,
"MaxCalls",
"Maximum number of minimisation calls");
90 DeclareOptionRef(fInitialTemperature,
"InitialTemp",
"Initial temperature");
91 DeclareOptionRef(fMinTemperature,
"MinTemp",
"Minimum temperature");
92 DeclareOptionRef(fEps,
"Eps",
"Epsilon");
93 DeclareOptionRef(fTemperatureScale,
"TempScale",
"Temperature scale");
94 DeclareOptionRef(fAdaptiveSpeed,
"AdaptiveSpeed",
"Adaptive speed");
95 DeclareOptionRef(fTemperatureAdaptiveStep,
"TempAdaptiveStep",
"Step made in each generation temperature adaptive");
96 DeclareOptionRef(fUseDefaultScale,
"UseDefaultScale",
"Use default temperature scale for temperature minimisation algorithm");
97 DeclareOptionRef(fUseDefaultTemperature,
"UseDefaultTemp",
"Use default initial temperature");
99 DeclareOptionRef(fKernelTemperatureS,
"KernelTemp",
"Temperature minimisation algorithm");
100 AddPreDefVal(
TString(
"IncAdaptive"));
101 AddPreDefVal(
TString(
"DecAdaptive"));
120 Bool_t useDefaultTemperature)
122 fMaxCalls = maxCalls;
123 fInitialTemperature = initialTemperature;
124 fMinTemperature = minTemperature;
126 fKernelTemperatureS = kernelTemperatureS;
127 fTemperatureScale = temperatureScale;
128 fTemperatureAdaptiveStep = temperatureAdaptiveStep;
129 fUseDefaultScale = useDefaultScale;
130 fUseDefaultTemperature = useDefaultTemperature;
138 Log() << kHEADER <<
"<SimulatedAnnealingFitter> Optimisation, please be patient ... " <<
Endl;
139 Log() << kINFO <<
"(progress timing may be inaccurate for SA)" <<
Endl;
144 sa.
SetOptions( fMaxCalls, fInitialTemperature, fMinTemperature, fEps, fKernelTemperatureS,
145 fTemperatureScale, fAdaptiveSpeed, fTemperatureAdaptiveStep,
146 fUseDefaultScale, fUseDefaultTemperature );
149 *fIPyMaxIter = fMaxCalls;
virtual void ParseOptions()
options parser
Base class for TMVA fitters.
Double_t Run()
estimator function interface for fitting
Interface for a fitter 'target'.
Fitter using a Simulated Annealing Algorithm.
void SetParameters(Int_t fMaxCalls, Double_t fInitialTemperature, Double_t fMinTemperature, Double_t fEps, TString fKernelTemperatureS, Double_t fTemperatureScale, Double_t fTemperatureAdaptiveStep, Bool_t fUseDefaultScale, Bool_t fUseDefaultTemperature)
set SA configuration parameters
SimulatedAnnealingFitter(IFitterTarget &target, const TString &name, const std::vector< TMVA::Interval * > &ranges, const TString &theOption)
constructor
void DeclareOptions()
declare SA options.
Base implementation of simulated annealing fitting procedure.
Double_t Minimize(std::vector< Double_t > ¶meters)
minimisation algorithm
void SetOptions(Int_t maxCalls, Double_t initialTemperature, Double_t minTemperature, Double_t eps, TString kernelTemperatureS, Double_t temperatureScale, Double_t adaptiveSpeed, Double_t temperatureAdaptiveStep, Bool_t useDefaultScale, Bool_t useDefaultTemperature)
option setter
void SetIPythonInteractive(bool *ExitFromTraining, UInt_t *fIPyCurrentIter_)
Abstract ClassifierFactory template that handles arbitrary types.
MsgLogger & Endl(MsgLogger &ml)