ROOT logo
ROOT » TMVA » TMVA::VariableTransformBase

class TMVA::VariableTransformBase: public TObject

Function Members (Methods)

 
    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

public:
virtual~VariableTransformBase()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidAttachXMLTo(void* parent)
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidCountVariableTypes(UInt_t& nvars, UInt_t& ntgts, UInt_t& nspcts) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual Bool_tGetInput(const TMVA::Event* event, vector<Float_t>& input, vector<Char_t>& mask, Bool_t backTransform = kFALSE) const
virtual const char*GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
TStringGetShortName() const
virtual const char*TObject::GetTitle() const
virtual vector<TString>*GetTransformationStrings(Int_t cls) const
virtual UInt_tTObject::GetUniqueID() const
TMVA::Types::EVariableTransformGetVariableTransform() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidInitialize()
virtual voidTObject::Inspect() constMENU
virtual const TMVA::Event*InverseTransform(const TMVA::Event *const, Int_t cls) const
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
Bool_tIsCreated() const
Bool_tIsEnabled() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tIsNormalised() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
TMVA::MsgLogger&Log() const
virtual voidTObject::ls(Option_t* option = "") const
virtual voidMakeFunction(ostream& fout, const TString& fncName, Int_t part, UInt_t trCounter, Int_t cls)
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TObject&TObject::operator=(const TObject& rhs)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual Bool_tPrepareTransformation(const vector<TMVA::Event*,allocator<TMVA::Event*> >&)
virtual voidTObject::Print(Option_t* option = "") const
virtual voidPrintTransformation(ostream&)
virtual Int_tTObject::Read(const char* name)
virtual voidReadFromXML(void* trfnode)
virtual voidReadTransformationFromStream(istream& istr, const TString& classname = "")
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
virtual voidSelectInput(const TString& inputVariables, Bool_t putIntoVariables = kFALSE)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetEnabled(Bool_t e)
voidSetNormalise(Bool_t n)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidSetOutput(TMVA::Event* event, vector<Float_t>& output, vector<Char_t>& mask, const TMVA::Event* oldEvent = 0, Bool_t backTransform = kFALSE) const
voidSetOutputDataSetInfo(TMVA::DataSetInfo* outputDsi)
voidSetTMVAVersion(TMVA::TMVAVersion_t v)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetUseSignalTransform(Bool_t e = kTRUE)
virtual voidShowMembers(TMemberInspector& insp)
const vector<TMVA::VariableInfo>&Spectators() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
const vector<TMVA::VariableInfo>&Targets() const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
voidToggleInputSortOrder(Bool_t sortOrder)
virtual const TMVA::Event*Transform(const TMVA::Event *const, Int_t cls) const
virtual voidTObject::UseCurrentStyle()
Bool_tUseSignalTransform() const
const vector<TMVA::VariableInfo>&Variables() const
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
virtual voidWriteTransformationToStream(ostream& o) const
protected:
voidCalcNorm(const vector<TMVA::Event*,allocator<TMVA::Event*> >&)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
Int_tGetNClasses() const
UInt_tGetNSpectators() const
UInt_tGetNTargets() const
UInt_tGetNVariables() const
voidTObject::MakeZombie()
voidSetCreated(Bool_t c = kTRUE)
voidSetName(const TString& c)
voidSetNVariables(UInt_t i)
vector<TMVA::VariableInfo>&Spectators()
vector<TMVA::VariableInfo>&Targets()
vector<TMVA::VariableInfo>&Variables()
private:
voidUpdateNorm(Int_t ivar, Double_t x)

Data Members

protected:
TMVA::Event*fBackTransformedEventholds the current back-transformed event
TMVA::DataSetInfo&fDsi
TMVA::DataSetInfo*fDsiOutput
TMVA::VariableTransformBase::VectorOfCharAndIntfGetget variables/targets/spectators
TMVA::MsgLogger*fLogger! message logger
TMVA::VariableTransformBase::VectorOfCharAndIntfPutput variables/targets/spectators
TMVA::TMVAVersion_tfTMVAVersion
TMVA::Event*fTransformedEventholds the current transformed event
private:
Bool_tfCreatedhas been created
Bool_tfEnabledhas been enabled
UInt_tfNSpectatorsnumber of spectators to be transformed
UInt_tfNTargetsnumber of targets to be transformed
UInt_tfNVariablesnumber of variables to be transformed
UInt_tfNVarsnumber of variables
Bool_tfNormalisenormalise input variables
Bool_tfSortGetif true, sort the variables into the order as defined by the user at the var definition
vector<TMVA::VariableInfo>fSpectatorsevent spectators [saved to weight file --> TODO ]
vector<TMVA::VariableInfo>fTargetsevent targets [saved to weight file --> TODO ]
TStringfTransformNamename of transformation
Bool_tfUseSignalTransformtrue if transformation bases on signal data
TMVA::Types::EVariableTransformfVariableTransformDecorrelation, PCA, etc.
Bool_tfVariableTypesAreCountedtrue if variable types have been counted already
vector<TMVA::VariableInfo>fVariablesevent variables [saved to weight file]

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

~VariableTransformBase()
void SelectInput(const TString& inputVariables, Bool_t putIntoVariables = kFALSE)
 select the variables/targets/spectators which serve as input to the transformation
Bool_t GetInput(const TMVA::Event* event, vector<Float_t>& input, vector<Char_t>& mask, Bool_t backTransform = kFALSE) const
 select the values from the event
void SetOutput(TMVA::Event* event, vector<Float_t>& output, vector<Char_t>& mask, const TMVA::Event* oldEvent = 0, Bool_t backTransform = kFALSE) const
 select the values from the event
void CountVariableTypes(UInt_t& nvars, UInt_t& ntgts, UInt_t& nspcts) const
 count variables, targets and spectators
void CalcNorm(const vector<TMVA::Event*,allocator<TMVA::Event*> >& )
 TODO --> adapt to variable,target,spectator selection
 method to calculate minimum, maximum, mean, and RMS for all
 variables used in the MVA
std::vector<TString>* GetTransformationStrings(Int_t cls) const
 TODO --> adapt to variable,target,spectator selection
 default transformation output
 --> only indicate that transformation occurred
void UpdateNorm(Int_t ivar, Double_t x)
 TODO --> adapt to variable,target,spectator selection
 update min and max of a given variable (target) and a given transformation method
void AttachXMLTo(void* parent)
 create XML description the transformation (write out info of selected variables)
void ReadFromXML(void* trfnode)
 Read the input variables from the XML node
void MakeFunction(ostream& fout, const TString& fncName, Int_t part, UInt_t trCounter, Int_t cls)
 getinput and setoutput equivalent
void Initialize()
Bool_t PrepareTransformation(const vector<TMVA::Event*,allocator<TMVA::Event*> >& )
const Event* Transform(const TMVA::Event *const , Int_t cls) const
const Event* InverseTransform(const TMVA::Event *const , Int_t cls) const
void SetEnabled(Bool_t e)
 accessors
{ fEnabled = e; }
void SetNormalise(Bool_t n)
{ fNormalise = n; }
Bool_t IsEnabled() const
{ return fEnabled; }
Bool_t IsCreated() const
{ return fCreated; }
Bool_t IsNormalised() const
{ return fNormalise; }
void ToggleInputSortOrder(Bool_t sortOrder)
{ fSortGet = sortOrder; }
void SetOutputDataSetInfo(TMVA::DataSetInfo* outputDsi)
{ fDsiOutput = outputDsi; }
void SetUseSignalTransform(Bool_t e = kTRUE)
Bool_t UseSignalTransform() const
const char* GetName() const
{ return fTransformName.Data(); }
TString GetShortName() const
{ TString a(fTransformName); a.ReplaceAll("Transform",""); return a; }
void WriteTransformationToStream(ostream& o) const
void ReadTransformationFromStream(istream& istr, const TString& classname = "")
Types::EVariableTransform GetVariableTransform() const
{ return fVariableTransform; }
void PrintTransformation(ostream& )
{}
const std::vector<TMVA::VariableInfo>& Variables() const
{ return fVariables; }
const std::vector<TMVA::VariableInfo>& Targets() const
{ return fTargets; }
const std::vector<TMVA::VariableInfo>& Spectators() const
{ return fSpectators; }
void SetTMVAVersion(TMVA::TMVAVersion_t v)
{ fTMVAVersion = v; }
void SetCreated(Bool_t c = kTRUE)
{ fCreated = c; }
void SetNVariables(UInt_t i)
{ fNVars = i; }
void SetName(const TString& c)
UInt_t GetNVariables() const
{ return fDsi.GetNVariables(); }
UInt_t GetNTargets() const
{ return fDsi.GetNTargets(); }
UInt_t GetNSpectators() const
{ return fDsi.GetNSpectators(); }
std::vector<TMVA::VariableInfo>& Variables()
{ return fVariables; }
std::vector<TMVA::VariableInfo>& Targets()
{ return fTargets; }
std::vector<TMVA::VariableInfo>& Spectators()
{ return fSpectators; }
Int_t GetNClasses() const
{ return fDsi.GetNClasses(); }