PandaRoot
PndMultiClassBdtTrain Class Reference

#include <PndMultiClassBdtTrain.h>

Inheritance diagram for PndMultiClassBdtTrain:
PndMvaTrainer

Public Member Functions

 PndMultiClassBdtTrain (std::string const &InPut, std::vector< std::string > const &ClassNames, std::vector< std::string > const &VarNames, bool trim=true)
 
virtual ~PndMultiClassBdtTrain ()
 
void Train ()
 
void storeWeights ()
 
void Initialize ()
 
void SetJobName (std::string const &name)
 
void SetTransformation (std::string const &tran)
 
void SetBdtOptions (std::string const &opts)
 
void SetEvalFileName (std::string const &fname)
 
void SetWeightsOutDir (std::string const &dirName)
 
void SetEvaluation (bool evaluate)
 
std::string const & GetJobName () const
 
std::string const & GetTransformation () const
 
std::string const & GetBdtOptions () const
 
std::string const & GetEvalFileName () const
 
std::string const & GetWeightsOutDir () const
 
- Public Member Functions inherited from PndMvaTrainer
 PndMvaTrainer (std::vector< std::pair< std::string, std::vector< float > *>> const &InputEvtsParam, std::vector< std::string > const &ClassNames, std::vector< std::string > const &VarNames, bool trim=true)
 
 PndMvaTrainer (std::string const &InPut, std::vector< std::string > const &ClassNames, std::vector< std::string > const &VarNames, bool trim=true)
 
virtual ~PndMvaTrainer ()
 Destructor. More...
 
void SetTestSetSize (size_t percent=50)
 
void SetTestSet (std::set< size_t > const &testSet)
 
void NormalizeData (NormType t=NONORM)
 
void PCATransForm ()
 
void SetOutPutFile (std::string const &outFile)
 
void WriteErroVect (std::string const &FileName) const
 
std::vector< StepError > const & GetErrorValues () const
 
std::set< size_t > const & GetTestEvetIdx () const
 
std::vector< PndMvaClass > const & GetClasses () const
 Get the list of available classes (labels). More...
 
std::vector< PndMvaVariable > const & GetVariables () const
 Get the list of available variables. More...
 
virtual void EvalClassifierError ()
 
size_t GetRndSeed () const
 
void SetRndSeed (size_t const sd)
 

Additional Inherited Members

- Protected Member Functions inherited from PndMvaTrainer
void SetAppType (AppType t)
 
void WriteToWeightFile (std::vector< std::pair< std::string, std::vector< float > *>> const &weights) const
 
void splitTetsSet ()
 
- Protected Attributes inherited from PndMvaTrainer
std::set< size_t > m_testSet_indices
 Indices of the test set. More...
 
PndMvaDataSet m_dataSets
 Data set. Holds event values. More...
 
std::vector< StepErrorm_StepErro
 Container to keep per step error values. More...
 
std::string m_outFile
 Output filename. More...
 
size_t m_RND_seed
 Random seed. More...
 

Detailed Description

Definition at line 41 of file PndMultiClassBdtTrain.h.

Constructor & Destructor Documentation

◆ PndMultiClassBdtTrain()

PndMultiClassBdtTrain::PndMultiClassBdtTrain ( std::string const &  InPut,
std::vector< std::string > const &  ClassNames,
std::vector< std::string > const &  VarNames,
bool  trim = true 
)
explicit

Constructor.

Parameters
InPutThe file containig the event data.
ClassNamesLabels of the classes to be used.
VarNamesThe name of the involved variables(features).
trimIf the data set needs to be trimmed.

◆ ~PndMultiClassBdtTrain()

virtual PndMultiClassBdtTrain::~PndMultiClassBdtTrain ( )
virtual

Destructor.

Member Function Documentation

◆ GetBdtOptions()

std::string const & PndMultiClassBdtTrain::GetBdtOptions ( ) const
inline

Definition at line 162 of file PndMultiClassBdtTrain.h.

163 {
164  return m_BdtOptions;
165 };

◆ GetEvalFileName()

std::string const & PndMultiClassBdtTrain::GetEvalFileName ( ) const
inline

Definition at line 172 of file PndMultiClassBdtTrain.h.

173 {
174  return m_evalFileName;
175 };

◆ GetJobName()

std::string const & PndMultiClassBdtTrain::GetJobName ( ) const
inline

Definition at line 152 of file PndMultiClassBdtTrain.h.

153 {
154  return m_JName;
155 };

◆ GetTransformation()

std::string const & PndMultiClassBdtTrain::GetTransformation ( ) const
inline

Definition at line 157 of file PndMultiClassBdtTrain.h.

158 {
159  return m_transform;
160 };

◆ GetWeightsOutDir()

std::string const & PndMultiClassBdtTrain::GetWeightsOutDir ( ) const
inline

Definition at line 182 of file PndMultiClassBdtTrain.h.

183 {
184  return m_weightDirName;
185 };

◆ Initialize()

void PndMultiClassBdtTrain::Initialize ( )
virtual

Initialize Classifier and data structures.

Reimplemented from PndMvaTrainer.

◆ SetBdtOptions()

void PndMultiClassBdtTrain::SetBdtOptions ( std::string const &  opts)
inline

Definition at line 147 of file PndMultiClassBdtTrain.h.

148 {
149  this->m_BdtOptions = opt;
150 };

◆ SetEvalFileName()

void PndMultiClassBdtTrain::SetEvalFileName ( std::string const &  fname)
inline

Definition at line 167 of file PndMultiClassBdtTrain.h.

168 {
169  this->m_evalFileName = fname;
170 };

◆ SetEvaluation()

void PndMultiClassBdtTrain::SetEvaluation ( bool  evaluate)
inline

Definition at line 187 of file PndMultiClassBdtTrain.h.

188 {
189  this->m_Evaluate = evaluate;
190 };

◆ SetJobName()

void PndMultiClassBdtTrain::SetJobName ( std::string const &  name)
inline

Definition at line 137 of file PndMultiClassBdtTrain.h.

138 {
139  this->m_JName = name;
140 };

◆ SetTransformation()

void PndMultiClassBdtTrain::SetTransformation ( std::string const &  tran)
inline

Definition at line 142 of file PndMultiClassBdtTrain.h.

143 {
144  this->m_transform = tr;
145 };

◆ SetWeightsOutDir()

void PndMultiClassBdtTrain::SetWeightsOutDir ( std::string const &  dirName)
inline

Definition at line 177 of file PndMultiClassBdtTrain.h.

178 {
179  this->m_weightDirName = dirName;
180 };

◆ storeWeights()

void PndMultiClassBdtTrain::storeWeights ( )
virtual

Store weights in the output File. If output file name is not specified, then write nothing.

Implements PndMvaTrainer.

◆ Train()

void PndMultiClassBdtTrain::Train ( )
virtual

Train the classifier.

Implements PndMvaTrainer.


The documentation for this class was generated from the following file: