#include <PndMvaTrainer.h>
Definition at line 33 of file PndMvaTrainer.h.
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 |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
InPut | The input parameters. |
ClassNames | Names of available labels(classes). |
VarNames | Names of available variables. |
PndMvaTrainer::PndMvaTrainer |
( |
std::string const & |
InPut, |
|
|
std::vector< std::string > const & |
ClassNames, |
|
|
std::vector< std::string > const & |
VarNames, |
|
|
bool |
trim = true |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
InPut,The | input filename. |
ClassNames | Names of available classes. |
VarNames | Names of available variables. |
virtual PndMvaTrainer::~PndMvaTrainer |
( |
| ) |
|
|
virtual |
virtual void PndMvaTrainer::EvalClassifierError |
( |
| ) |
|
|
virtual |
std::vector< PndMvaClass > const & PndMvaTrainer::GetClasses |
( |
| ) |
const |
|
inline |
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 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 |
|
inline |
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 m_StepErro.
std::vector< StepError > m_StepErro
Container to keep per step error values.
size_t PndMvaTrainer::GetRndSeed |
( |
| ) |
const |
|
inline |
std::set< size_t > const & PndMvaTrainer::GetTestEvetIdx |
( |
| ) |
const |
|
inline |
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 m_testSet_indices.
std::set< size_t > m_testSet_indices
Indices of the test set.
std::vector< PndMvaVariable > const & PndMvaTrainer::GetVariables |
( |
| ) |
const |
|
inline |
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 m_dataSets.
PndMvaDataSet m_dataSets
Data set. Holds event values.
std::vector< PndMvaVariable > const & GetVars() const
Get the list of available variables.
virtual void PndMvaTrainer::Initialize |
( |
| ) |
|
|
virtual |
Select input data normalization scheme.
void PndMvaTrainer::PCATransForm |
( |
| ) |
|
Parameter decorrelation. Performs PCA (Principal component analysis) on the input dataset.
void PndMvaTrainer::SetAppType |
( |
AppType |
t | ) |
|
|
inlineprotected |
void PndMvaTrainer::SetOutPutFile |
( |
std::string const & |
outFile | ) |
|
|
inline |
void PndMvaTrainer::SetRndSeed |
( |
size_t const |
sd | ) |
|
|
inline |
void PndMvaTrainer::SetTestSet |
( |
std::set< size_t > const & |
testSet | ) |
|
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 | ) |
|
Creates test and train data sets.
- Parameters
-
percent | Percent of the data set to be used for testing. |
void PndMvaTrainer::splitTetsSet |
( |
| ) |
|
|
protected |
virtual void PndMvaTrainer::storeWeights |
( |
| ) |
|
|
pure virtual |
virtual void PndMvaTrainer::Train |
( |
| ) |
|
|
pure virtual |
void PndMvaTrainer::WriteErroVect |
( |
std::string const & |
FileName | ) |
const |
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 |
|
protected |
Write the training and normalization data to outFile.
std::string PndMvaTrainer::m_outFile |
|
protected |
size_t PndMvaTrainer::m_RND_seed |
|
protected |
std::vector<StepError> PndMvaTrainer::m_StepErro |
|
protected |
std::set<size_t> PndMvaTrainer::m_testSet_indices |
|
protected |
size_t PndMvaTrainer::m_testSetSize |
|
private |
bool PndMvaTrainer::m_trim |
|
private |
The documentation for this class was generated from the following file: