TMVA::MethodSVM Class Reference

#include <MethodSVM.h>

Inheritance diagram for TMVA::MethodSVM:

TMVA::MethodBase TMVA::MethodBase TMVA::Configurable TMVA::IMethod TMVA::Configurable TMVA::IMethod TMVA::Configurable TMVA::IMethod TMVA::Configurable TMVA::IMethod List of all members.

Public Member Functions

 MethodSVM (const TString &jobName, const TString &methodTitle, DataSetInfo &theData, const TString &theOption="", TDirectory *theTargetDir=0)
 MethodSVM (DataSetInfo &theData, const TString &theWeightFile, TDirectory *theTargetDir=NULL)
virtual ~MethodSVM (void)
virtual Bool_t HasAnalysisType (Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets)
void Train (void)
void WriteWeightsToStream (TFile &fout) const
void AddWeightsXMLTo (void *parent) const
void ReadWeightsFromStream (std::istream &istr)
void ReadWeightsFromStream (TFile &fFin)
void ReadWeightsFromXML (void *wghtnode)
Double_t GetMvaValue (Double_t *err=0, Double_t *errUpper=0)
const std::vector< Float_t > & GetRegressionValues ()
void Init (void)
const RankingCreateRanking ()
 MethodSVM (const TString &jobName, const TString &methodTitle, DataSetInfo &theData, const TString &theOption="", TDirectory *theTargetDir=0)
 MethodSVM (DataSetInfo &theData, const TString &theWeightFile, TDirectory *theTargetDir=NULL)
virtual ~MethodSVM (void)
virtual Bool_t HasAnalysisType (Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets)
void Train (void)
void WriteWeightsToStream (TFile &fout) const
void AddWeightsXMLTo (void *parent) const
void ReadWeightsFromStream (std::istream &istr)
void ReadWeightsFromStream (TFile &fFin)
void ReadWeightsFromXML (void *wghtnode)
Double_t GetMvaValue (Double_t *err=0, Double_t *errUpper=0)
const std::vector< Float_t > & GetRegressionValues ()
void Init (void)
const RankingCreateRanking ()

Protected Member Functions

void MakeClassSpecific (std::ostream &, const TString &) const
void GetHelpMessage () const
void MakeClassSpecific (std::ostream &, const TString &) const
void GetHelpMessage () const

Private Member Functions

void DeclareOptions ()
void DeclareCompatibilityOptions ()
void ProcessOptions ()
void DeclareOptions ()
void DeclareCompatibilityOptions ()
void ProcessOptions ()

Private Attributes

Float_t fCost
Float_t fTolerance
UInt_t fMaxIter
UShort_t fNSubSets
Float_t fBparm
Float_t fGamma
SVWorkingSetfWgSet
std::vector< TMVA::SVEvent * > * fInputData
std::vector< TMVA::SVEvent * > * fSupportVectors
SVKernelFunctionfSVKernelFunction
TVectorDfMinVars
TVectorDfMaxVars
TString fTheKernel
Float_t fDoubleSigmaSquared
Int_t fOrder
Float_t fTheta
Float_t fKappa
SVWorkingSetfWgSet
std::vector< TMVA::SVEvent * > * fInputData
std::vector< TMVA::SVEvent * > * fSupportVectors
SVKernelFunctionfSVKernelFunction
TVectorDfMinVars
TVectorDfMaxVars

Detailed Description

Definition at line 64 of file MethodSVM.h.


Constructor & Destructor Documentation

TMVA::MethodSVM::MethodSVM ( const TString jobName,
const TString methodTitle,
DataSetInfo theData,
const TString theOption = "",
TDirectory theTargetDir = 0 
)

TMVA::MethodSVM::MethodSVM ( DataSetInfo theData,
const TString theWeightFile,
TDirectory theTargetDir = NULL 
)

Definition at line 98 of file MethodSVM.cxx.

TMVA::MethodSVM::~MethodSVM ( void   )  [virtual]

Definition at line 121 of file MethodSVM.cxx.

References fInputData, fSupportVectors, fSVKernelFunction, and fWgSet.

TMVA::MethodSVM::MethodSVM ( const TString jobName,
const TString methodTitle,
DataSetInfo theData,
const TString theOption = "",
TDirectory theTargetDir = 0 
)

TMVA::MethodSVM::MethodSVM ( DataSetInfo theData,
const TString theWeightFile,
TDirectory theTargetDir = NULL 
)

virtual TMVA::MethodSVM::~MethodSVM ( void   )  [virtual]


Member Function Documentation

Bool_t TMVA::MethodSVM::HasAnalysisType ( Types::EAnalysisType  type,
UInt_t  numberClasses,
UInt_t  numberTargets 
) [virtual]

Implements TMVA::IMethod.

Definition at line 131 of file MethodSVM.cxx.

References TMVA::Types::kClassification, kFALSE, TMVA::Types::kRegression, and kTRUE.

void TMVA::MethodSVM::Train ( void   )  [virtual]

Implements TMVA::MethodBase.

Definition at line 196 of file MethodSVM.cxx.

References TMVA::MethodBase::Data(), TMVA::MethodBase::DoRegression(), Endl, fBparm, fCost, fGamma, fInputData, fMaxIter, fSupportVectors, fSVKernelFunction, fTolerance, fWgSet, TMVA::SVWorkingSet::GetBpar(), TMVA::Timer::GetElapsedTime(), TMVA::MethodBase::GetEvent(), TMVA::MethodBase::GetName(), TMVA::DataSet::GetNEvents(), TMVA::SVWorkingSet::GetSupportVectors(), TMVA::kDEBUG, TMVA::kINFO, TMVA::Types::kTraining, TMVA::Configurable::Log(), TMVA::DataSet::SetCurrentType(), timer, and TMVA::SVWorkingSet::Train().

void TMVA::MethodSVM::WriteWeightsToStream ( TFile fout  )  const

Definition at line 307 of file MethodSVM.cxx.

void TMVA::MethodSVM::AddWeightsXMLTo ( void *  parent  )  const [virtual]

Implements TMVA::MethodBase.

Definition at line 227 of file MethodSVM.cxx.

References TMVA::Tools::AddAttr(), TMVA::Tools::AddChild(), fBparm, fGamma, fSupportVectors, TMVA::MethodBase::GetNvar(), TMVA::MethodBase::GetXmax(), TMVA::MethodBase::GetXmin(), TMVA::gTools(), and TMVA::Tools::WriteTVectorDToXML().

void TMVA::MethodSVM::ReadWeightsFromStream ( std::istream &  istr  )  [virtual]

Implements TMVA::MethodBase.

void TMVA::MethodSVM::ReadWeightsFromStream ( TFile fFin  )  [virtual]

Reimplemented from TMVA::MethodBase.

Definition at line 371 of file MethodSVM.cxx.

void TMVA::MethodSVM::ReadWeightsFromXML ( void *  wghtnode  )  [virtual]

Implements TMVA::MethodBase.

Definition at line 256 of file MethodSVM.cxx.

References fBparm, fGamma, fMaxVars, fMinVars, fSupportVectors, fSVKernelFunction, TMVA::Tools::GetChild(), TMVA::Tools::GetNextChild(), TMVA::MethodBase::GetNvar(), TMVA::gTools(), int, TMVA::Tools::ReadAttr(), and TMVA::Tools::ReadTVectorDFromXML().

Double_t TMVA::MethodSVM::GetMvaValue ( Double_t err = 0,
Double_t errUpper = 0 
) [virtual]

Implements TMVA::MethodBase.

Definition at line 377 of file MethodSVM.cxx.

References TMVA::SVKernelFunction::Evaluate(), TMath::Exp(), fSupportVectors, fSVKernelFunction, TMVA::MethodBase::GetEvent(), and TMVA::MethodBase::NoErrorCalc().

const std::vector< Float_t > & TMVA::MethodSVM::GetRegressionValues (  )  [virtual]

Reimplemented from TMVA::MethodBase.

Definition at line 402 of file MethodSVM.cxx.

References TMVA::SVKernelFunction::Evaluate(), Event, TMVA::MethodBase::fRegressionReturnVal, fSupportVectors, fSVKernelFunction, TMVA::MethodBase::GetEvent(), TMVA::Event::GetTarget(), TMVA::MethodBase::GetTransformationHandler(), TMVA::TransformationHandler::InverseTransform(), NULL, and TMVA::Event::SetTarget().

void TMVA::MethodSVM::Init ( void   )  [virtual]

Implements TMVA::MethodBase.

Definition at line 140 of file MethodSVM.cxx.

References TMVA::MethodBase::Data(), fInputData, fSupportVectors, TMVA::DataSet::GetNEvents(), kTRUE, and TMVA::MethodBase::SetNormalised().

const Ranking* TMVA::MethodSVM::CreateRanking (  )  [inline, virtual]

Implements TMVA::MethodBase.

Definition at line 98 of file MethodSVM.h.

void TMVA::MethodSVM::MakeClassSpecific ( std::ostream &  ,
const TString  
) const [protected, virtual]

Reimplemented from TMVA::MethodBase.

Definition at line 434 of file MethodSVM.cxx.

References fGamma, fSupportVectors, and TMVA::MethodBase::GetNvar().

void TMVA::MethodSVM::GetHelpMessage (  )  const [protected, virtual]

Implements TMVA::IMethod.

Definition at line 510 of file MethodSVM.cxx.

References TMVA::Tools::Color(), Endl, TMVA::gTools(), and TMVA::Configurable::Log().

void TMVA::MethodSVM::DeclareOptions (  )  [private, virtual]

Implements TMVA::MethodBase.

Definition at line 152 of file MethodSVM.cxx.

References TMVA::Configurable::DeclareOptionRef(), TMVA::MethodBase::DoRegression(), fCost, fGamma, fMaxIter, fNSubSets, and fTolerance.

void TMVA::MethodSVM::DeclareCompatibilityOptions (  )  [private, virtual]

Reimplemented from TMVA::MethodBase.

Definition at line 170 of file MethodSVM.cxx.

References TMVA::MethodBase::DeclareCompatibilityOptions(), TMVA::Configurable::DeclareOptionRef(), fDoubleSigmaSquared, fKappa, fOrder, fTheKernel, and fTheta.

void TMVA::MethodSVM::ProcessOptions (  )  [private, virtual]

Implements TMVA::MethodBase.

Definition at line 184 of file MethodSVM.cxx.

References Endl, TMVA::MethodBase::GetMethodTypeName(), TMVA::MethodBase::IgnoreEventsWithNegWeightsInTraining(), TMVA::kFATAL, and TMVA::Configurable::Log().

virtual Bool_t TMVA::MethodSVM::HasAnalysisType ( Types::EAnalysisType  type,
UInt_t  numberClasses,
UInt_t  numberTargets 
) [virtual]

Implements TMVA::IMethod.

void TMVA::MethodSVM::Train ( void   )  [virtual]

Implements TMVA::MethodBase.

void TMVA::MethodSVM::WriteWeightsToStream ( TFile fout  )  const

void TMVA::MethodSVM::AddWeightsXMLTo ( void *  parent  )  const [virtual]

Implements TMVA::MethodBase.

void TMVA::MethodSVM::ReadWeightsFromStream ( std::istream &  istr  )  [virtual]

Implements TMVA::MethodBase.

void TMVA::MethodSVM::ReadWeightsFromStream ( TFile fFin  )  [virtual]

Reimplemented from TMVA::MethodBase.

void TMVA::MethodSVM::ReadWeightsFromXML ( void *  wghtnode  )  [virtual]

Implements TMVA::MethodBase.

Double_t TMVA::MethodSVM::GetMvaValue ( Double_t err = 0,
Double_t errUpper = 0 
) [virtual]

Implements TMVA::MethodBase.

const std::vector<Float_t>& TMVA::MethodSVM::GetRegressionValues (  )  [virtual]

Reimplemented from TMVA::MethodBase.

void TMVA::MethodSVM::Init ( void   )  [virtual]

Implements TMVA::MethodBase.

const Ranking* TMVA::MethodSVM::CreateRanking (  )  [inline, virtual]

Implements TMVA::MethodBase.

Definition at line 98 of file MethodSVM.h.

void TMVA::MethodSVM::MakeClassSpecific ( std::ostream &  ,
const TString  
) const [protected, virtual]

Reimplemented from TMVA::MethodBase.

void TMVA::MethodSVM::GetHelpMessage (  )  const [protected, virtual]

Implements TMVA::IMethod.

void TMVA::MethodSVM::DeclareOptions (  )  [private, virtual]

Implements TMVA::MethodBase.

void TMVA::MethodSVM::DeclareCompatibilityOptions (  )  [private, virtual]

Reimplemented from TMVA::MethodBase.

void TMVA::MethodSVM::ProcessOptions (  )  [private, virtual]

Implements TMVA::MethodBase.


Member Data Documentation

Float_t TMVA::MethodSVM::fCost [private]

Definition at line 115 of file MethodSVM.h.

Referenced by DeclareOptions(), and Train().

Float_t TMVA::MethodSVM::fTolerance [private]

Definition at line 116 of file MethodSVM.h.

Referenced by DeclareOptions(), and Train().

UInt_t TMVA::MethodSVM::fMaxIter [private]

Definition at line 117 of file MethodSVM.h.

Referenced by DeclareOptions(), and Train().

UShort_t TMVA::MethodSVM::fNSubSets [private]

Definition at line 118 of file MethodSVM.h.

Referenced by DeclareOptions().

Float_t TMVA::MethodSVM::fBparm [private]

Definition at line 119 of file MethodSVM.h.

Referenced by AddWeightsXMLTo(), ReadWeightsFromXML(), and Train().

Float_t TMVA::MethodSVM::fGamma [private]

Definition at line 120 of file MethodSVM.h.

Referenced by AddWeightsXMLTo(), DeclareOptions(), MakeClassSpecific(), ReadWeightsFromXML(), and Train().

SVWorkingSet* TMVA::MethodSVM::fWgSet [private]

Definition at line 121 of file MethodSVM.h.

Referenced by Train(), and ~MethodSVM().

std::vector<TMVA::SVEvent*>* TMVA::MethodSVM::fInputData [private]

Definition at line 122 of file MethodSVM.h.

Referenced by Init(), Train(), and ~MethodSVM().

std::vector<TMVA::SVEvent*>* TMVA::MethodSVM::fSupportVectors [private]

Definition at line 123 of file MethodSVM.h.

Referenced by AddWeightsXMLTo(), GetMvaValue(), GetRegressionValues(), Init(), MakeClassSpecific(), ReadWeightsFromXML(), Train(), and ~MethodSVM().

SVKernelFunction* TMVA::MethodSVM::fSVKernelFunction [private]

Definition at line 124 of file MethodSVM.h.

Referenced by GetMvaValue(), GetRegressionValues(), ReadWeightsFromXML(), Train(), and ~MethodSVM().

TVectorD* TMVA::MethodSVM::fMinVars [private]

Definition at line 126 of file MethodSVM.h.

Referenced by ReadWeightsFromXML().

TVectorD* TMVA::MethodSVM::fMaxVars [private]

Definition at line 127 of file MethodSVM.h.

Referenced by ReadWeightsFromXML().

TString TMVA::MethodSVM::fTheKernel [private]

Definition at line 130 of file MethodSVM.h.

Referenced by DeclareCompatibilityOptions().

Float_t TMVA::MethodSVM::fDoubleSigmaSquared [private]

Definition at line 131 of file MethodSVM.h.

Referenced by DeclareCompatibilityOptions().

Int_t TMVA::MethodSVM::fOrder [private]

Definition at line 132 of file MethodSVM.h.

Referenced by DeclareCompatibilityOptions().

Float_t TMVA::MethodSVM::fTheta [private]

Definition at line 133 of file MethodSVM.h.

Referenced by DeclareCompatibilityOptions().

Float_t TMVA::MethodSVM::fKappa [private]

Definition at line 134 of file MethodSVM.h.

Referenced by DeclareCompatibilityOptions().

SVWorkingSet* TMVA::MethodSVM::fWgSet [private]

Definition at line 121 of file MethodSVM.h.

std::vector<TMVA::SVEvent*>* TMVA::MethodSVM::fInputData [private]

Definition at line 122 of file MethodSVM.h.

std::vector<TMVA::SVEvent*>* TMVA::MethodSVM::fSupportVectors [private]

Definition at line 123 of file MethodSVM.h.

SVKernelFunction* TMVA::MethodSVM::fSVKernelFunction [private]

Definition at line 124 of file MethodSVM.h.

TVectorD* TMVA::MethodSVM::fMinVars [private]

Definition at line 126 of file MethodSVM.h.

TVectorD* TMVA::MethodSVM::fMaxVars [private]

Definition at line 127 of file MethodSVM.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 17:01:29 2011 for ROOT_528-00b_version by  doxygen 1.5.1