#include <PndMultiClassBdtTrain.h>
Definition at line 29 of file PndMultiClassBdtTrain.h.
PndMultiClassBdtTrain::PndMultiClassBdtTrain |
( |
std::string const & |
InPut, |
|
|
std::vector< std::string > const & |
ClassNames, |
|
|
std::vector< std::string > const & |
VarNames, |
|
|
bool |
trim = true |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
InPut | The file containig the event data. |
ClassNames | Labels of the classes to be used. |
VarNames | The name of the involved variables(features). |
trim | If the data set needs to be trimmed. |
virtual PndMultiClassBdtTrain::~PndMultiClassBdtTrain |
( |
| ) |
|
|
virtual |
void PndMultiClassBdtTrain::AddVariables |
( |
| ) |
|
|
private |
virtual void PndMvaTrainer::EvalClassifierError |
( |
| ) |
|
|
virtualinherited |
std::string const & PndMultiClassBdtTrain::GetBdtOptions |
( |
| ) |
const |
|
inline |
std::vector< PndMvaClass > const & PndMvaTrainer::GetClasses |
( |
| ) |
const |
|
inlineinherited |
Get the list of available classes (labels).
Get the list of available classes (labels). Vector containing available labels.
Definition at line 226 of file PndMvaTrainer.h.
References PndMvaDataSet::GetClasses(), and PndMvaTrainer::m_dataSets.
PndMvaDataSet m_dataSets
Data set. Holds event values.
std::vector< PndMvaClass > const & GetClasses() const
Get the list of available classes (labels).
std::vector< StepError > const & PndMvaTrainer::GetErrorValues |
( |
| ) |
const |
|
inlineinherited |
Get the list of objects that contain the classifier evaluation results.
- Returns
- List of evaluation objects.
Definition at line 238 of file PndMvaTrainer.h.
References PndMvaTrainer::m_StepErro.
std::vector< StepError > m_StepErro
Container to keep per step error values.
std::string const & PndMultiClassBdtTrain::GetEvalFileName |
( |
| ) |
const |
|
inline |
std::string const & PndMultiClassBdtTrain::GetJobName |
( |
| ) |
const |
|
inline |
size_t PndMvaTrainer::GetRndSeed |
( |
| ) |
const |
|
inlineinherited |
std::set< size_t > const & PndMvaTrainer::GetTestEvetIdx |
( |
| ) |
const |
|
inlineinherited |
Get the indices of the events selected to be used for testing.
- Returns
- A set containing the indices of test events.
Definition at line 220 of file PndMvaTrainer.h.
References PndMvaTrainer::m_testSet_indices.
std::set< size_t > m_testSet_indices
Indices of the test set.
std::string const & PndMultiClassBdtTrain::GetTransformation |
( |
| ) |
const |
|
inline |
std::vector< PndMvaVariable > const & PndMvaTrainer::GetVariables |
( |
| ) |
const |
|
inlineinherited |
Get the list of available variables.
Get the list of available variables. Vector containing available Parameters (features).
Definition at line 232 of file PndMvaTrainer.h.
References PndMvaDataSet::GetVars(), and PndMvaTrainer::m_dataSets.
PndMvaDataSet m_dataSets
Data set. Holds event values.
std::vector< PndMvaVariable > const & GetVars() const
Get the list of available variables.
std::string const & PndMultiClassBdtTrain::GetWeightsOutDir |
( |
| ) |
const |
|
inline |
void PndMultiClassBdtTrain::InitBdt |
( |
| ) |
|
|
private |
void PndMultiClassBdtTrain::Initialize |
( |
| ) |
|
|
virtual |
Initialize Classifier and data structures.
Reimplemented from PndMvaTrainer.
Select input data normalization scheme.
void PndMvaTrainer::PCATransForm |
( |
| ) |
|
|
inherited |
Parameter decorrelation. Performs PCA (Principal component analysis) on the input dataset.
void PndMvaTrainer::SetAppType |
( |
AppType |
t | ) |
|
|
inlineprotectedinherited |
void PndMultiClassBdtTrain::SetBdtOptions |
( |
std::string const & |
opts | ) |
|
|
inline |
void PndMultiClassBdtTrain::SetEvalFileName |
( |
std::string const & |
fname | ) |
|
|
inline |
void PndMultiClassBdtTrain::SetEvaluation |
( |
bool |
evaluate | ) |
|
|
inline |
void PndMultiClassBdtTrain::SetJobName |
( |
std::string const & |
name | ) |
|
|
inline |
void PndMvaTrainer::SetOutPutFile |
( |
std::string const & |
outFile | ) |
|
|
inlineinherited |
void PndMvaTrainer::SetRndSeed |
( |
size_t const |
sd | ) |
|
|
inlineinherited |
void PndMvaTrainer::SetTestSet |
( |
std::set< size_t > const & |
testSet | ) |
|
|
inherited |
Set the indices of events that are going to be used for testing.
- Parameters
-
testSet | Set containing the indices of the test events. |
void PndMvaTrainer::SetTestSetSize |
( |
size_t |
percent = 50 | ) |
|
|
inherited |
Creates test and train data sets.
- Parameters
-
percent | Percent of the data set to be used for testing. |
void PndMultiClassBdtTrain::SetTransformation |
( |
std::string const & |
tran | ) |
|
|
inline |
void PndMultiClassBdtTrain::SetWeightsOutDir |
( |
std::string const & |
dirName | ) |
|
|
inline |
void PndMvaTrainer::splitTetsSet |
( |
| ) |
|
|
protectedinherited |
void PndMultiClassBdtTrain::storeWeights |
( |
| ) |
|
|
virtual |
Store weights in the output File. If output file name is not specified, then write nothing.
Implements PndMvaTrainer.
void PndMultiClassBdtTrain::Train |
( |
| ) |
|
|
virtual |
void PndMvaTrainer::WriteErroVect |
( |
std::string const & |
FileName | ) |
const |
|
inherited |
Writes the train and test errors evaluations to a given file.
- Parameters
-
FileName | Output file name. |
void PndMvaTrainer::WriteToWeightFile |
( |
std::vector< std::pair< std::string, std::vector< float > * > > const & |
weights | ) |
const |
|
protectedinherited |
Write the training and normalization data to outFile.
TFile* PndMultiClassBdtTrain::EvalFile |
|
private |
std::string PndMultiClassBdtTrain::m_BdtOptions |
|
private |
std::string PndMultiClassBdtTrain::m_evalFileName |
|
private |
bool PndMultiClassBdtTrain::m_Evaluate |
|
private |
TMVA::Factory* PndMultiClassBdtTrain::m_factory |
|
private |
std::string PndMultiClassBdtTrain::m_JName |
|
private |
std::string PndMvaTrainer::m_outFile |
|
protectedinherited |
size_t PndMvaTrainer::m_RND_seed |
|
protectedinherited |
std::vector<StepError> PndMvaTrainer::m_StepErro |
|
protectedinherited |
std::set<size_t> PndMvaTrainer::m_testSet_indices |
|
protectedinherited |
std::string PndMultiClassBdtTrain::m_transform |
|
private |
std::string PndMultiClassBdtTrain::m_weightDirName |
|
private |
The documentation for this class was generated from the following file: