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 29 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 150 of file PndMultiClassBdtTrain.h.

151 {
152  return m_BdtOptions;
153 };

◆ GetEvalFileName()

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

Definition at line 160 of file PndMultiClassBdtTrain.h.

161 {
162  return m_evalFileName;
163 };

◆ GetJobName()

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

Definition at line 140 of file PndMultiClassBdtTrain.h.

141 {
142  return m_JName;
143 };

◆ GetTransformation()

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

Definition at line 145 of file PndMultiClassBdtTrain.h.

146 {
147  return m_transform;
148 };

◆ GetWeightsOutDir()

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

Definition at line 170 of file PndMultiClassBdtTrain.h.

171 {
172  return m_weightDirName;
173 };

◆ 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 135 of file PndMultiClassBdtTrain.h.

136 {
137  this->m_BdtOptions = opt;
138 };

◆ SetEvalFileName()

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

Definition at line 155 of file PndMultiClassBdtTrain.h.

156 {
157  this->m_evalFileName = fname;
158 };

◆ SetEvaluation()

void PndMultiClassBdtTrain::SetEvaluation ( bool  evaluate)
inline

Definition at line 175 of file PndMultiClassBdtTrain.h.

176 {
177  this->m_Evaluate = evaluate;
178 };

◆ SetJobName()

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

Definition at line 125 of file PndMultiClassBdtTrain.h.

126 {
127  this->m_JName = name;
128 };

◆ SetTransformation()

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

Definition at line 130 of file PndMultiClassBdtTrain.h.

131 {
132  this->m_transform = tr;
133 };

◆ SetWeightsOutDir()

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

Definition at line 165 of file PndMultiClassBdtTrain.h.

166 {
167  this->m_weightDirName = dirName;
168 };

◆ 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: