Class that contains all the data information.
Definition at line 56 of file TransformationHandler.h.
Classes | |
struct | VariableStat |
Public Member Functions | |
TransformationHandler (DataSetInfo &, const TString &callerName) | |
constructor | |
~TransformationHandler () | |
destructor | |
void | AddStats (Int_t k, UInt_t ivar, Double_t mean, Double_t rms, Double_t min, Double_t max) |
Caches calculated summary statistics of transformed variables. | |
VariableTransformBase * | AddTransformation (VariableTransformBase *, Int_t cls) |
void | AddXMLTo (void *parent=nullptr) const |
XML node describing the transformation. | |
void | CalcStats (const std::vector< Event * > &events) |
method to calculate minimum, maximum, mean, and RMS for all variables used in the MVA | |
const std::vector< Event * > * | CalcTransformations (const std::vector< Event * > &, Bool_t createNewVector=kFALSE) |
computation of transformation | |
const TString & | GetCallerName () const |
Double_t | GetMax (Int_t ivar, Int_t cls=-1) const |
Double_t | GetMean (Int_t ivar, Int_t cls=-1) const |
Double_t | GetMin (Int_t ivar, Int_t cls=-1) const |
TString | GetName () const |
return transformation name | |
const char * | GetNameOfLastTransform () const |
returns string for transformation | |
Int_t | GetNumOfTransformations () const |
Double_t | GetRMS (Int_t ivar, Int_t cls=-1) const |
TDirectory * | GetRootDir () const |
const TList & | GetTransformationList () const |
std::vector< TString > * | GetTransformationStringsOfLastTransform () const |
returns string for transformation | |
TString | GetVariableAxisTitle (const VariableInfo &info) const |
incorporates transformation type into title axis (usually for histograms) | |
const Event * | InverseTransform (const Event *, Bool_t suppressIfNoTargets=true) const |
void | MakeFunction (std::ostream &fout, const TString &fncName, Int_t part) const |
create transformation function | |
void | PlotVariables (const std::vector< Event * > &events, TDirectory *theDirectory=nullptr) |
create histograms from the input variables | |
void | PrintVariableRanking () const |
prints ranking of input variables | |
void | ReadFromStream (std::istream &istr) |
void | ReadFromXML (void *trfsnode) |
void | SetCallerName (const TString &name) |
void | SetRootDir (TDirectory *d) |
void | SetTransformationReferenceClass (Int_t cls) |
overrides the setting for all classes! (this is put in basically for the likelihood-method) be careful with the usage this method | |
const Event * | Transform (const Event *) const |
the transformation | |
void | WriteToStream (std::ostream &o) const |
write transformation to stream | |
Private Member Functions | |
DataSet * | Data () |
MsgLogger & | Log () const |
const TMVA::VariableInfo & | Target (UInt_t itgt) const |
const TMVA::VariableInfo & | Variable (UInt_t ivar) const |
Private Attributes | |
TString | fCallerName |
! name of the caller for output | |
DataSetInfo & | fDataSetInfo |
MsgLogger * | fLogger |
! message logger | |
Int_t | fNumC |
number of categories (#classes +1) | |
std::vector< Ranking * > | fRanking |
! ranking object | |
TDirectory * | fRootBaseDir |
! if set put input var hists | |
TList | fTransformations |
std::vector< Int_t > | fTransformationsReferenceClasses |
list of transformations | |
std::vector< std::vector< TMVA::TransformationHandler::VariableStat > > | fVariableStats |
reference classes for the transformations | |
#include <TMVA/TransformationHandler.h>
TMVA::TransformationHandler::TransformationHandler | ( | DataSetInfo & | dsi, |
const TString & | callerName | ||
) |
constructor
Definition at line 69 of file TransformationHandler.cxx.
TMVA::TransformationHandler::~TransformationHandler | ( | ) |
destructor
Definition at line 86 of file TransformationHandler.cxx.
void TMVA::TransformationHandler::AddStats | ( | Int_t | k, |
UInt_t | ivar, | ||
Double_t | mean, | ||
Double_t | rms, | ||
Double_t | min, | ||
Double_t | max | ||
) |
Caches calculated summary statistics of transformed variables.
[in] | k | index of class |
[in] | ivar | index of variable |
[in] | mean | the mean value of the variable |
[in] | rms | the root-mean-square value of the variable |
[in] | min | the minimum value of the variable |
[in] | max | the maximum value of the variable |
Definition at line 124 of file TransformationHandler.cxx.
TMVA::VariableTransformBase * TMVA::TransformationHandler::AddTransformation | ( | VariableTransformBase * | trf, |
Int_t | cls | ||
) |
Definition at line 105 of file TransformationHandler.cxx.
void TMVA::TransformationHandler::AddXMLTo | ( | void * | parent = nullptr | ) | const |
XML node describing the transformation.
Definition at line 864 of file TransformationHandler.cxx.
void TMVA::TransformationHandler::CalcStats | ( | const std::vector< Event * > & | events | ) |
method to calculate minimum, maximum, mean, and RMS for all variables used in the MVA
Definition at line 259 of file TransformationHandler.cxx.
const std::vector< TMVA::Event * > * TMVA::TransformationHandler::CalcTransformations | ( | const std::vector< Event * > & | events, |
Bool_t | createNewVector = kFALSE |
||
) |
computation of transformation
Definition at line 213 of file TransformationHandler.cxx.
|
inlineprivate |
Definition at line 125 of file TransformationHandler.h.
|
inline |
Definition at line 107 of file TransformationHandler.h.
Definition at line 993 of file TransformationHandler.cxx.
Definition at line 936 of file TransformationHandler.cxx.
Definition at line 974 of file TransformationHandler.cxx.
TString TMVA::TransformationHandler::GetName | ( | ) | const |
return transformation name
Definition at line 427 of file TransformationHandler.cxx.
const char * TMVA::TransformationHandler::GetNameOfLastTransform | ( | ) | const |
returns string for transformation
Definition at line 829 of file TransformationHandler.cxx.
|
inline |
Definition at line 80 of file TransformationHandler.h.
Definition at line 955 of file TransformationHandler.cxx.
|
inline |
Definition at line 110 of file TransformationHandler.h.
|
inline |
Definition at line 79 of file TransformationHandler.h.
std::vector< TString > * TMVA::TransformationHandler::GetTransformationStringsOfLastTransform | ( | ) | const |
returns string for transformation
Definition at line 819 of file TransformationHandler.cxx.
TString TMVA::TransformationHandler::GetVariableAxisTitle | ( | const VariableInfo & | info | ) | const |
incorporates transformation type into title axis (usually for histograms)
Definition at line 442 of file TransformationHandler.cxx.
const TMVA::Event * TMVA::TransformationHandler::InverseTransform | ( | const Event * | ev, |
Bool_t | suppressIfNoTargets = true |
||
) | const |
Definition at line 167 of file TransformationHandler.cxx.
|
inlineprivate |
Definition at line 138 of file TransformationHandler.h.
void TMVA::TransformationHandler::MakeFunction | ( | std::ostream & | fout, |
const TString & | fncName, | ||
Int_t | part | ||
) | const |
create transformation function
Definition at line 390 of file TransformationHandler.cxx.
void TMVA::TransformationHandler::PlotVariables | ( | const std::vector< Event * > & | events, |
TDirectory * | theDirectory = nullptr |
||
) |
create histograms from the input variables
Definition at line 461 of file TransformationHandler.cxx.
void TMVA::TransformationHandler::PrintVariableRanking | ( | ) | const |
prints ranking of input variables
Definition at line 926 of file TransformationHandler.cxx.
void TMVA::TransformationHandler::ReadFromStream | ( | std::istream & | istr | ) |
Definition at line 875 of file TransformationHandler.cxx.
void TMVA::TransformationHandler::ReadFromXML | ( | void * | trfsnode | ) |
Definition at line 883 of file TransformationHandler.cxx.
void TMVA::TransformationHandler::SetCallerName | ( | const TString & | name | ) |
Definition at line 97 of file TransformationHandler.cxx.
|
inline |
Definition at line 111 of file TransformationHandler.h.
void TMVA::TransformationHandler::SetTransformationReferenceClass | ( | Int_t | cls | ) |
overrides the setting for all classes! (this is put in basically for the likelihood-method) be careful with the usage this method
Definition at line 142 of file TransformationHandler.cxx.
|
inlineprivate |
Definition at line 123 of file TransformationHandler.h.
const TMVA::Event * TMVA::TransformationHandler::Transform | ( | const Event * | ev | ) | const |
the transformation
Definition at line 152 of file TransformationHandler.cxx.
|
inlineprivate |
Definition at line 122 of file TransformationHandler.h.
void TMVA::TransformationHandler::WriteToStream | ( | std::ostream & | o | ) | const |
write transformation to stream
Definition at line 839 of file TransformationHandler.cxx.
|
private |
! name of the caller for output
Definition at line 136 of file TransformationHandler.h.
|
private |
Definition at line 127 of file TransformationHandler.h.
|
mutableprivate |
! message logger
Definition at line 137 of file TransformationHandler.h.
|
private |
number of categories (#classes +1)
Definition at line 132 of file TransformationHandler.h.
|
private |
! ranking object
Definition at line 134 of file TransformationHandler.h.
|
private |
! if set put input var hists
Definition at line 135 of file TransformationHandler.h.
|
private |
Definition at line 128 of file TransformationHandler.h.
|
private |
list of transformations
Definition at line 129 of file TransformationHandler.h.
|
private |
reference classes for the transformations
Definition at line 130 of file TransformationHandler.h.