Base implementation of simulated annealing fitting procedure.
Definition at line 51 of file SimulatedAnnealing.h.
Public Member Functions | |
SimulatedAnnealing (IFitterTarget &target, const std::vector< TMVA::Interval * > &ranges) | |
constructor | |
virtual | ~SimulatedAnnealing () |
destructor | |
Double_t | Minimize (std::vector< Double_t > ¶meters) |
minimisation algorithm | |
void | SetAccuracy (Double_t eps) |
void | SetAdaptiveSpeed (Double_t speed) |
void | SetInitTemp (Double_t it) |
void | SetIPythonInteractive (bool *ExitFromTraining, UInt_t *fIPyCurrentIter_) |
void | SetMaxCalls (Int_t mc) |
void | SetMinTemp (Double_t min) |
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 | SetTemperatureScale (Double_t scale) |
Private Types | |
enum | EKernelTemperature { kSqrt = 0 , kIncreasingAdaptive , kDecreasingAdaptive , kLog , kHomo , kSin , kGeo } |
Private Member Functions | |
void | FillWithRandomValues (std::vector< Double_t > ¶meters) |
random starting parameters | |
Double_t | GenerateMaxTemperature (std::vector< Double_t > ¶meters) |
maximum temperature | |
std::vector< Double_t > | GenerateNeighbour (std::vector< Double_t > ¶meters, Double_t currentTemperature) |
generate adjacent parameters | |
void | GenerateNeighbour (std::vector< Double_t > ¶meters, std::vector< Double_t > &oldParameters, Double_t currentTemperature) |
generate adjacent parameters | |
void | GenerateNewTemperature (Double_t ¤tTemperature, Int_t Iter) |
generate new temperature | |
MsgLogger & | Log () const |
void | ReWriteParameters (std::vector< Double_t > &from, std::vector< Double_t > &to) |
copy parameters | |
void | SetDefaultScale () |
setting of default scale | |
Bool_t | ShouldGoIn (Double_t currentFit, Double_t localFit, Double_t currentTemperature) |
result checker | |
Private Attributes | |
Double_t | fAdaptiveSpeed |
Double_t | fEps |
bool * | fExitFromTraining = nullptr |
IFitterTarget & | fFitterTarget |
Double_t | fInitialTemperature |
UInt_t * | fIPyCurrentIter = nullptr |
enum TMVA::SimulatedAnnealing::EKernelTemperature | fKernelTemperature |
MsgLogger * | fLogger |
Int_t | fMaxCalls |
Double_t | fMinTemperature |
Double_t | fProgress |
TRandom * | fRandom |
const std::vector< TMVA::Interval * > & | fRanges |
Double_t | fTemperatureAdaptiveStep |
Double_t | fTemperatureScale |
Bool_t | fUseDefaultScale |
Bool_t | fUseDefaultTemperature |
#include <TMVA/SimulatedAnnealing.h>
|
private |
Enumerator | |
---|---|
kSqrt | |
kIncreasingAdaptive | |
kDecreasingAdaptive | |
kLog | |
kHomo | |
kSin | |
kGeo |
Definition at line 81 of file SimulatedAnnealing.h.
TMVA::SimulatedAnnealing::SimulatedAnnealing | ( | IFitterTarget & | target, |
const std::vector< TMVA::Interval * > & | ranges | ||
) |
constructor
Definition at line 50 of file SimulatedAnnealing.cxx.
|
virtual |
destructor
Definition at line 125 of file SimulatedAnnealing.cxx.
random starting parameters
Definition at line 132 of file SimulatedAnnealing.cxx.
|
private |
maximum temperature
Definition at line 251 of file SimulatedAnnealing.cxx.
|
private |
generate adjacent parameters
Definition at line 169 of file SimulatedAnnealing.cxx.
|
private |
generate adjacent parameters
Definition at line 150 of file SimulatedAnnealing.cxx.
|
private |
generate new temperature
Definition at line 190 of file SimulatedAnnealing.cxx.
|
inlineprivate |
Definition at line 119 of file SimulatedAnnealing.h.
minimisation algorithm
Definition at line 312 of file SimulatedAnnealing.cxx.
|
private |
copy parameters
Definition at line 142 of file SimulatedAnnealing.cxx.
Definition at line 65 of file SimulatedAnnealing.h.
Definition at line 67 of file SimulatedAnnealing.h.
|
private |
setting of default scale
Definition at line 230 of file SimulatedAnnealing.cxx.
Definition at line 63 of file SimulatedAnnealing.h.
|
inline |
Definition at line 74 of file SimulatedAnnealing.h.
Definition at line 62 of file SimulatedAnnealing.h.
Definition at line 64 of file SimulatedAnnealing.h.
void TMVA::SimulatedAnnealing::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
Definition at line 73 of file SimulatedAnnealing.cxx.
Definition at line 66 of file SimulatedAnnealing.h.
|
private |
result checker
Definition at line 219 of file SimulatedAnnealing.cxx.
|
private |
Definition at line 110 of file SimulatedAnnealing.h.
|
private |
Definition at line 108 of file SimulatedAnnealing.h.
|
private |
Definition at line 125 of file SimulatedAnnealing.h.
|
private |
Definition at line 100 of file SimulatedAnnealing.h.
|
private |
Definition at line 106 of file SimulatedAnnealing.h.
|
private |
Definition at line 124 of file SimulatedAnnealing.h.
|
private |
|
mutableprivate |
Definition at line 118 of file SimulatedAnnealing.h.
|
private |
Definition at line 105 of file SimulatedAnnealing.h.
|
private |
Definition at line 107 of file SimulatedAnnealing.h.
|
private |
Definition at line 121 of file SimulatedAnnealing.h.
|
private |
Definition at line 101 of file SimulatedAnnealing.h.
|
private |
Definition at line 102 of file SimulatedAnnealing.h.
|
private |
Definition at line 113 of file SimulatedAnnealing.h.
|
private |
Definition at line 109 of file SimulatedAnnealing.h.
|
private |
Definition at line 115 of file SimulatedAnnealing.h.
|
private |
Definition at line 116 of file SimulatedAnnealing.h.