Definition at line 49 of file OptimizeConfigParameters.h.
Public Member Functions | |
OptimizeConfigParameters (MethodBase *const method, std::map< TString, TMVA::Interval * > tuneParameters, TString fomType="Separation", TString optimizationType="GA") | |
Constructor which sets either "Classification or Regression". | |
virtual | ~OptimizeConfigParameters () |
the destructor (delete the OptimizeConfigParameters, store the graph and .. delete it) | |
TClass * | IsA () const override |
std::map< TString, Double_t > | optimize () |
void | Streamer (TBuffer &) override |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
![]() | |
IFitterTarget () | |
constructor | |
virtual | ~IFitterTarget () |
virtual void | ProgressNotifier (TString, TString) |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
![]() | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Public Attributes | |
friend | TestOptimizeConfigParameters |
Private Member Functions | |
Double_t | EstimatorFunction (std::vector< Double_t > &) override |
return the estimator (from current FOM) for the fitting interface | |
Double_t | GetBkgEffAtSigEff (Double_t sigEff=0.5) |
calculate the background efficiency for a given signal efficiency | |
Double_t | GetBkgRejAtSigEff (Double_t sigEff=0.5) |
calculate the background rejection for a given signal efficiency | |
Double_t | GetFOM () |
Return the Figure of Merit (FOM) used in the parameter optimization process. | |
MethodBase * | GetMethod () |
void | GetMVADists () |
fill the private histograms with the mva distributions for sig/bkg | |
Double_t | GetROCIntegral () |
calculate the area (integral) under the ROC curve as a overall quality measure of the classification | |
std::vector< int > | GetScanIndices (int val, std::vector< int > base) |
helper function to scan through the all the combinations in the parameter space | |
Double_t | GetSeparation () |
return the separation between the signal and background MVA ouput distribution | |
Double_t | GetSigEffAtBkgEff (Double_t bkgEff=0.1) |
calculate the signal efficiency for a given background efficiency | |
MsgLogger & | Log () const |
void | optimizeFit () |
void | optimizeScan () |
do the actual optimization using a simple scan method, i.e. | |
Private Attributes | |
std::map< std::vector< Double_t >, Double_t > | fAlreadyTrainedParCombination |
save parameters for which the FOM is already known (GA seems to evaluate the same parameters several times) | |
TString | fFOMType |
the FOM type (Separation, ROC integra.. whatever you implemented.. | |
std::vector< Float_t > | fFOMvsIter |
graph showing the development of the Figure Of Merit values during the fit | |
MsgLogger * | fLogger |
! message logger | |
MethodBase *const | fMethod |
The MVA method to be evaluated. | |
TH1D * | fMvaBkg |
MVA distribution for bakgr. events, used for spline fit. | |
TH1D * | fMvaBkgFineBin |
MVA distribution for bakgr. events. | |
TH1D * | fMvaSig |
MVA distribution for signal events, used for spline fit. | |
TH1D * | fMvaSigFineBin |
MVA distribution for signal events. | |
Bool_t | fNotDoneYet |
flat to indicate of Method Transformations have been obtained yet or not (normally done in MethodBase::TrainMethod) | |
TString | fOptimizationFitType |
which type of optimisation procedure to be used | |
std::map< TString, Double_t > | fTunedParameters |
parameters included in the tuning | |
std::map< TString, TMVA::Interval * > | fTuneParameters |
parameters included in the tuning | |
#include <TMVA/OptimizeConfigParameters.h>
TMVA::OptimizeConfigParameters::OptimizeConfigParameters | ( | MethodBase *const | method, |
std::map< TString, TMVA::Interval * > | tuneParameters, | ||
TString | fomType = "Separation", | ||
TString | optimizationType = "GA" ) |
Constructor which sets either "Classification or Regression".
Definition at line 59 of file OptimizeConfigParameters.cxx.
|
virtual |
the destructor (delete the OptimizeConfigParameters, store the graph and .. delete it)
Definition at line 95 of file OptimizeConfigParameters.cxx.
Definition at line 100 of file OptimizeConfigParameters.h.
Definition at line 100 of file OptimizeConfigParameters.h.
|
overrideprivatevirtual |
return the estimator (from current FOM) for the fitting interface
Implements TMVA::IFitterTarget.
Definition at line 306 of file OptimizeConfigParameters.cxx.
calculate the background efficiency for a given signal efficiency
adapted by marc-.nosp@m.oliv.nosp@m.ier.b.nosp@m.ettl.nosp@m.er@ce.nosp@m.rn.c.nosp@m.h
Definition at line 545 of file OptimizeConfigParameters.cxx.
calculate the background rejection for a given signal efficiency
adapted by marc-.nosp@m.oliv.nosp@m.ier.b.nosp@m.ettl.nosp@m.er@ce.nosp@m.rn.c.nosp@m.h
Definition at line 582 of file OptimizeConfigParameters.cxx.
|
private |
Return the Figure of Merit (FOM) used in the parameter optimization process.
Definition at line 349 of file OptimizeConfigParameters.cxx.
|
inlineprivate |
Definition at line 72 of file OptimizeConfigParameters.h.
|
private |
fill the private histograms with the mva distributions for sig/bkg
Definition at line 392 of file OptimizeConfigParameters.cxx.
|
private |
calculate the area (integral) under the ROC curve as a overall quality measure of the classification
making pdfs out of the MVA-output distributions doesn't work reliably for cases where the MVA-output isn't a smooth distribution. this happens "frequently" in BDTs for example when the number of trees is small resulting in only some discrete possible MVA output values. (I still leave the code here, but use this with care!!! The default however is to use the distributions!!!
Definition at line 457 of file OptimizeConfigParameters.cxx.
|
private |
helper function to scan through the all the combinations in the parameter space
Definition at line 148 of file OptimizeConfigParameters.cxx.
|
private |
return the separation between the signal and background MVA ouput distribution
Definition at line 433 of file OptimizeConfigParameters.cxx.
calculate the signal efficiency for a given background efficiency
Definition at line 508 of file OptimizeConfigParameters.cxx.
|
inlineoverridevirtual |
Reimplemented from TMVA::IFitterTarget.
Definition at line 100 of file OptimizeConfigParameters.h.
|
inlineprivate |
Definition at line 98 of file OptimizeConfigParameters.h.
Definition at line 126 of file OptimizeConfigParameters.cxx.
|
private |
Definition at line 241 of file OptimizeConfigParameters.cxx.
|
private |
do the actual optimization using a simple scan method, i.e.
calculate the FOM for different tuning paraemters and remember which one is gave the best FOM
Definition at line 163 of file OptimizeConfigParameters.cxx.
|
overridevirtual |
Reimplemented from TMVA::IFitterTarget.
|
inline |
Definition at line 100 of file OptimizeConfigParameters.h.
|
private |
save parameters for which the FOM is already known (GA seems to evaluate the same parameters several times)
Definition at line 86 of file OptimizeConfigParameters.h.
|
private |
the FOM type (Separation, ROC integra.. whatever you implemented..
Definition at line 87 of file OptimizeConfigParameters.h.
|
private |
graph showing the development of the Figure Of Merit values during the fit
Definition at line 83 of file OptimizeConfigParameters.h.
|
mutableprivate |
! message logger
Definition at line 97 of file OptimizeConfigParameters.h.
|
private |
The MVA method to be evaluated.
Definition at line 82 of file OptimizeConfigParameters.h.
|
private |
MVA distribution for bakgr. events, used for spline fit.
Definition at line 90 of file OptimizeConfigParameters.h.
|
private |
MVA distribution for bakgr. events.
Definition at line 93 of file OptimizeConfigParameters.h.
|
private |
MVA distribution for signal events, used for spline fit.
Definition at line 89 of file OptimizeConfigParameters.h.
|
private |
MVA distribution for signal events.
Definition at line 92 of file OptimizeConfigParameters.h.
|
private |
flat to indicate of Method Transformations have been obtained yet or not (normally done in MethodBase::TrainMethod)
Definition at line 95 of file OptimizeConfigParameters.h.
|
private |
which type of optimisation procedure to be used
Definition at line 88 of file OptimizeConfigParameters.h.
parameters included in the tuning
Definition at line 85 of file OptimizeConfigParameters.h.
|
private |
parameters included in the tuning
Definition at line 84 of file OptimizeConfigParameters.h.
friend TMVA::OptimizeConfigParameters::TestOptimizeConfigParameters |
Definition at line 52 of file OptimizeConfigParameters.h.