![]() |
ROOT
6.06/08
Reference Guide
|
Definition at line 61 of file TransformationHandler.h.
Classes | |
| struct | VariableStat |
Public Member Functions | |
| TransformationHandler (DataSetInfo &, const TString &callerName) | |
| constructor More... | |
| ~TransformationHandler () | |
| destructor More... | |
| TString | GetName () const |
| return transformation name More... | |
| TString | GetVariableAxisTitle (const VariableInfo &info) const |
| incorporates transformation type into title axis (usually for histograms) More... | |
| const Event * | Transform (const Event *) const |
| the transformation More... | |
| const Event * | InverseTransform (const Event *, Bool_t suppressIfNoTargets=true) const |
| 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 More... | |
| VariableTransformBase * | AddTransformation (VariableTransformBase *, Int_t cls) |
| const TList & | GetTransformationList () const |
| Int_t | GetNumOfTransformations () const |
| const std::vector< Event * > * | CalcTransformations (const std::vector< Event *> &, Bool_t createNewVector=kFALSE) |
| computation of transformation More... | |
| void | CalcStats (const std::vector< Event *> &events) |
| void | AddStats (Int_t k, UInt_t ivar, Double_t mean, Double_t rms, Double_t min, Double_t max) |
| Double_t | GetMean (Int_t ivar, Int_t cls=-1) const |
| Double_t | GetRMS (Int_t ivar, Int_t cls=-1) const |
| Double_t | GetMin (Int_t ivar, Int_t cls=-1) const |
| Double_t | GetMax (Int_t ivar, Int_t cls=-1) const |
| void | WriteToStream (std::ostream &o) const |
| write transformatino to stream More... | |
| void | AddXMLTo (void *parent=0) const |
| XML node describing the transformation return;. More... | |
| void | ReadFromStream (std::istream &istr) |
| VariableTransformBase* trf = ((VariableTransformBase*)GetTransformationList().Last()); trf->ReadTransformationFromStream(fin);. More... | |
| void | ReadFromXML (void *trfsnode) |
| void | MakeFunction (std::ostream &fout, const TString &fncName, Int_t part) const |
| create transformation function More... | |
| void | PrintVariableRanking () const |
| prints ranking of input variables More... | |
| std::vector< TString > * | GetTransformationStringsOfLastTransform () const |
| returns string for transformation More... | |
| const char * | GetNameOfLastTransform () const |
| returns string for transformation More... | |
| void | SetCallerName (const TString &name) |
| const TString & | GetCallerName () const |
| TDirectory * | GetRootDir () const |
| void | SetRootDir (TDirectory *d) |
| void | PlotVariables (const std::vector< Event *> &events, TDirectory *theDirectory=0) |
| create histograms from the input variables More... | |
Private Member Functions | |
| const TMVA::VariableInfo & | Variable (UInt_t ivar) const |
| const TMVA::VariableInfo & | Target (UInt_t itgt) const |
| DataSet * | Data () |
| MsgLogger & | Log () const |
| message logger More... | |
Private Attributes | |
| DataSetInfo & | fDataSetInfo |
| TList | fTransformations |
| std::vector< Int_t > | fTransformationsReferenceClasses |
| list of transformations More... | |
| std::vector< std::vector< TMVA::TransformationHandler::VariableStat > > | fVariableStats |
| reference classes for the transformations More... | |
| Int_t | fNumC |
| std::vector< Ranking * > | fRanking |
| TDirectory * | fRootBaseDir |
| ranking object More... | |
| TString | fCallerName |
| if set put input var hists More... | |
| MsgLogger * | fLogger |
| name of the caller for output More... | |
#include <TMVA/TransformationHandler.h>
Collaboration diagram for TMVA::TransformationHandler:| TMVA::TransformationHandler::TransformationHandler | ( | DataSetInfo & | dsi, |
| const TString & | callerName | ||
| ) |
constructor
Definition at line 74 of file TransformationHandler.cxx.
| TMVA::TransformationHandler::~TransformationHandler | ( | ) |
destructor
Definition at line 91 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 | ||
| ) |
Definition at line 121 of file TransformationHandler.cxx.
Referenced by CalcStats(), and GetNumOfTransformations().
| TMVA::VariableTransformBase * TMVA::TransformationHandler::AddTransformation | ( | VariableTransformBase * | trf, |
| Int_t | cls | ||
| ) |
Definition at line 110 of file TransformationHandler.cxx.
Referenced by TMVA::MethodBase::CreateVariableTransforms(), ReadFromXML(), and TMVA::MethodBase::ReadStateFromStream().
XML node describing the transformation return;.
Definition at line 858 of file TransformationHandler.cxx.
Referenced by GetNumOfTransformations(), and TMVA::MethodBase::WriteStateToXML().
Definition at line 251 of file TransformationHandler.cxx.
Referenced by CalcTransformations(), GetNumOfTransformations(), and PlotVariables().
| const std::vector< TMVA::Event * > * TMVA::TransformationHandler::CalcTransformations | ( | const std::vector< Event *> & | events, |
| Bool_t | createNewVector = kFALSE |
||
| ) |
computation of transformation
Definition at line 207 of file TransformationHandler.cxx.
Referenced by TMVA::MethodBase::GetEventCollection(), GetNumOfTransformations(), TMVA::OptimizeConfigParameters::optimizeScan(), and TMVA::MethodBase::TrainMethod().
|
inlineprivate |
Definition at line 130 of file TransformationHandler.h.
Referenced by AddTransformation(), and SetCallerName().
|
inline |
Definition at line 112 of file TransformationHandler.h.
Definition at line 990 of file TransformationHandler.cxx.
Referenced by CalcStats(), GetNumOfTransformations(), TMVA::MethodBase::GetXmax(), and PlotVariables().
Definition at line 932 of file TransformationHandler.cxx.
Referenced by CalcStats(), TMVA::MethodBase::GetMean(), and GetNumOfTransformations().
Definition at line 971 of file TransformationHandler.cxx.
Referenced by CalcStats(), GetNumOfTransformations(), TMVA::MethodBase::GetXmin(), and PlotVariables().
| TString TMVA::TransformationHandler::GetName | ( | ) | const |
return transformation name
Definition at line 420 of file TransformationHandler.cxx.
Referenced by GetVariableAxisTitle(), and PlotVariables().
| const char * TMVA::TransformationHandler::GetNameOfLastTransform | ( | ) | const |
returns string for transformation
Definition at line 822 of file TransformationHandler.cxx.
Referenced by GetNumOfTransformations(), and TMVA::MethodCuts::PrintCuts().
|
inline |
Definition at line 85 of file TransformationHandler.h.
Referenced by TMVA::MethodCuts::PrintCuts().
Definition at line 952 of file TransformationHandler.cxx.
Referenced by CalcStats(), GetNumOfTransformations(), and TMVA::MethodBase::GetRMS().
|
inline |
Definition at line 115 of file TransformationHandler.h.
|
inline |
Definition at line 84 of file TransformationHandler.h.
Referenced by GetNameOfLastTransform(), GetTransformationStringsOfLastTransform(), GetVariableAxisTitle(), TMVA::MethodHMatrix::MakeClassSpecific(), and TMVA::MethodLikelihood::MakeClassSpecific().
| std::vector< TString > * TMVA::TransformationHandler::GetTransformationStringsOfLastTransform | ( | ) | const |
returns string for transformation
Definition at line 812 of file TransformationHandler.cxx.
Referenced by GetNumOfTransformations(), and TMVA::MethodCuts::PrintCuts().
| TString TMVA::TransformationHandler::GetVariableAxisTitle | ( | const VariableInfo & | info | ) | const |
incorporates transformation type into title axis (usually for histograms)
Definition at line 435 of file TransformationHandler.cxx.
Referenced by PlotVariables().
| const TMVA::Event * TMVA::TransformationHandler::InverseTransform | ( | const Event * | ev, |
| Bool_t | suppressIfNoTargets = true |
||
| ) | const |
Definition at line 163 of file TransformationHandler.cxx.
Referenced by TMVA::MethodLD::GetRegressionValues(), TMVA::MethodSVM::GetRegressionValues(), TMVA::MethodFDA::GetRegressionValues(), TMVA::MethodPDERS::GetRegressionValues(), TMVA::MethodBDT::GetRegressionValues(), TMVA::MethodANNBase::GetRegressionValues(), and TMVA::MethodPDEFoam::GetRegressionValues().
|
inlineprivate |
message logger
Definition at line 143 of file TransformationHandler.h.
Referenced by AddStats(), CalcStats(), GetMax(), GetMean(), GetMin(), GetRMS(), PlotVariables(), PrintVariableRanking(), ReadFromStream(), ReadFromXML(), and Transform().
| void TMVA::TransformationHandler::MakeFunction | ( | std::ostream & | fout, |
| const TString & | fncName, | ||
| Int_t | part | ||
| ) | const |
create transformation function
Definition at line 383 of file TransformationHandler.cxx.
Referenced by GetNumOfTransformations(), and TMVA::MethodBase::MakeClass().
| void TMVA::TransformationHandler::PlotVariables | ( | const std::vector< Event *> & | events, |
| TDirectory * | theDirectory = 0 |
||
| ) |
create histograms from the input variables
Definition at line 454 of file TransformationHandler.cxx.
Referenced by CalcTransformations(), SetRootDir(), and TMVA::MethodBase::WriteEvaluationHistosToFile().
| void TMVA::TransformationHandler::PrintVariableRanking | ( | ) | const |
prints ranking of input variables
Definition at line 922 of file TransformationHandler.cxx.
Referenced by GetNumOfTransformations(), and TMVA::Factory::WriteDataInformation().
| void TMVA::TransformationHandler::ReadFromStream | ( | std::istream & | istr | ) |
VariableTransformBase* trf = ((VariableTransformBase*)GetTransformationList().Last()); trf->ReadTransformationFromStream(fin);.
Definition at line 871 of file TransformationHandler.cxx.
Referenced by GetNumOfTransformations().
Definition at line 879 of file TransformationHandler.cxx.
Referenced by GetNumOfTransformations(), and TMVA::MethodBase::ReadStateFromXML().
Definition at line 102 of file TransformationHandler.cxx.
Referenced by GetNumOfTransformations(), TMVA::MethodBase::ReadStateFromStream(), and TMVA::MethodBase::ReadStateFromXML().
|
inline |
Definition at line 116 of file TransformationHandler.h.
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 138 of file TransformationHandler.cxx.
Referenced by TMVA::MethodHMatrix::ComputeCovariance(), TMVA::MethodLikelihood::CreateRanking(), TMVA::MethodHMatrix::GetChi2(), TMVA::MethodLikelihood::GetMvaValue(), and TMVA::MethodLikelihood::Train().
|
inlineprivate |
Definition at line 128 of file TransformationHandler.h.
Referenced by CalcStats(), and PlotVariables().
| const TMVA::Event * TMVA::TransformationHandler::Transform | ( | const Event * | ev | ) | const |
the transformation
Definition at line 148 of file TransformationHandler.cxx.
Referenced by TMVA::MethodHMatrix::ComputeCovariance(), TMVA::MethodLikelihood::CreateRanking(), TMVA::MethodHMatrix::GetChi2(), TMVA::MethodBase::GetEvent(), and TMVA::MethodLikelihood::Train().
|
inlineprivate |
Definition at line 127 of file TransformationHandler.h.
Referenced by AddStats(), CalcStats(), and PlotVariables().
| void TMVA::TransformationHandler::WriteToStream | ( | std::ostream & | o | ) | const |
write transformatino to stream
Definition at line 832 of file TransformationHandler.cxx.
Referenced by GetNumOfTransformations().
|
private |
if set put input var hists
Definition at line 141 of file TransformationHandler.h.
Referenced by AddTransformation(), GetCallerName(), and SetCallerName().
|
private |
Definition at line 132 of file TransformationHandler.h.
Referenced by Data(), PlotVariables(), ReadFromXML(), Target(), Variable(), and WriteToStream().
|
mutableprivate |
name of the caller for output
Definition at line 142 of file TransformationHandler.h.
Referenced by Log(), SetCallerName(), and ~TransformationHandler().
|
private |
Definition at line 137 of file TransformationHandler.h.
Referenced by CalcStats(), GetMax(), GetMean(), GetMin(), GetRMS(), PlotVariables(), and TransformationHandler().
|
private |
Definition at line 139 of file TransformationHandler.h.
Referenced by PlotVariables(), PrintVariableRanking(), and ~TransformationHandler().
|
private |
ranking object
Definition at line 140 of file TransformationHandler.h.
Referenced by GetRootDir(), PlotVariables(), and SetRootDir().
|
private |
Definition at line 133 of file TransformationHandler.h.
Referenced by AddTransformation(), AddXMLTo(), CalcTransformations(), GetName(), GetNumOfTransformations(), GetTransformationList(), GetVariableAxisTitle(), InverseTransform(), MakeFunction(), PlotVariables(), Transform(), WriteToStream(), and ~TransformationHandler().
|
private |
list of transformations
Definition at line 134 of file TransformationHandler.h.
Referenced by AddTransformation(), CalcTransformations(), GetTransformationStringsOfLastTransform(), InverseTransform(), MakeFunction(), SetTransformationReferenceClass(), Transform(), and WriteToStream().
|
private |
reference classes for the transformations
Definition at line 135 of file TransformationHandler.h.
Referenced by AddStats(), GetMax(), GetMean(), GetMin(), GetRMS(), PlotVariables(), and TransformationHandler().