#include <PndKnnTrain.h>
|
| PndKnnTrain (std::string const &InputFile, std::vector< std::string > const &ClassNames, std::vector< std::string > const &VarNames, bool trim=true) |
|
virtual | ~PndKnnTrain () |
|
void | Train () |
|
void | storeWeights () |
|
| 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 |
|
virtual void | Initialize () |
|
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) |
|
Definition at line 15 of file PndKnnTrain.h.
◆ PndKnnTrain()
PndKnnTrain::PndKnnTrain |
( |
std::string const & |
InputFile, |
|
|
std::vector< std::string > const & |
ClassNames, |
|
|
std::vector< std::string > const & |
VarNames, |
|
|
bool |
trim = true |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
InputFile | Example event input File name. |
ClassNames | Class names for wich the classifier is trained. |
VarNames | Variable names creating the feature vector. |
◆ ~PndKnnTrain()
virtual PndKnnTrain::~PndKnnTrain |
( |
| ) |
|
|
virtual |
◆ storeWeights()
void PndKnnTrain::storeWeights |
( |
| ) |
|
|
virtual |
Store weights in the output File. If output file name is not specified, then write nothing.
Implements PndMvaTrainer.
◆ Train()
void PndKnnTrain::Train |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following file: