#include <PndMvaDataSet.h>
Definition at line 76 of file PndMvaDataSet.h.
◆ PndMvaDataSet() [1/2]
PndMvaDataSet::PndMvaDataSet |
( |
std::vector< std::pair< std::string, std::vector< float > *>> const & |
InputEvtsParam, |
|
|
std::vector< std::string > const & |
classNames, |
|
|
std::vector< std::string > const & |
varNames, |
|
|
AppType |
type |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
InputEvtsParam | Input event data (attributes). |
classNames | Names of available Labels (classes). |
varNames | Available variable names. |
type | Application Type. |
Note: The data from "InputEvtsParam" is copied into the internal container. Use with caution in case of large data sets.
◆ PndMvaDataSet() [2/2]
PndMvaDataSet::PndMvaDataSet |
( |
std::string const & |
WeightFile, |
|
|
std::vector< std::string > const & |
classNames, |
|
|
std::vector< std::string > const & |
varNames, |
|
|
AppType |
type |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
inputFilename | Input File name. |
classNames | Names of available Labels (classes). |
varNames | Available variable names. |
type | Application Type. |
◆ ~PndMvaDataSet()
virtual PndMvaDataSet::~PndMvaDataSet |
( |
| ) |
|
|
virtual |
◆ Get_PCA()
Get PCA object
- Returns
- PCA object containing PCA parameters.
Definition at line 350 of file PndMvaDataSet.h.
◆ GetAppType()
AppType PndMvaDataSet::GetAppType |
( |
| ) |
const |
|
inline |
◆ GetClassCondMeans()
std::map< std::string, std::vector< float > * > const & PndMvaDataSet::GetClassCondMeans |
( |
| ) |
const |
|
inline |
Get classconditional means for all classes (labels).
Definition at line 332 of file PndMvaDataSet.h.
334 return m_ClassCondMeans;
◆ GetClasses()
std::vector< PndMvaClass > const & PndMvaDataSet::GetClasses |
( |
| ) |
const |
|
inline |
◆ GetData()
std::vector< std::pair< std::string, std::vector< float > * > > const & PndMvaDataSet::GetData |
( |
| ) |
const |
|
inline |
Get available data vectors.
Definition at line 316 of file PndMvaDataSet.h.
318 assert(m_events.size() != 0);
◆ GetInFileName()
std::string const & PndMvaDataSet::GetInFileName |
( |
| ) |
const |
|
inline |
Get name of input file name (weight/event file).
Definition at line 337 of file PndMvaDataSet.h.
◆ GetNormType()
NormType PndMvaDataSet::GetNormType |
( |
| ) |
const |
|
inline |
◆ GetRndSeed()
size_t PndMvaDataSet::GetRndSeed |
( |
| ) |
const |
|
inline |
◆ GetVars()
std::vector< PndMvaVariable > const & PndMvaDataSet::GetVars |
( |
| ) |
const |
|
inline |
◆ InitClsCondMeans()
virtual void PndMvaDataSet::InitClsCondMeans |
( |
std::set< size_t > const & |
excludeIndxs | ) |
|
|
virtual |
Initialize the class conditional means vectors and modifies the attributes of the available labels for this data set (PndMvaClass::NTrainEx); these are the events that are not to be excluded. These events are specified by the exclude indices set.
- Parameters
-
excludeIndxs | The set of event indices to exclude during the computation. |
◆ Initialize()
virtual void PndMvaDataSet::Initialize |
( |
| ) |
|
|
virtual |
Init Dataset. Determine how to handle input, based on the application type.
◆ PCATransForm()
virtual void PndMvaDataSet::PCATransForm |
( |
| ) |
|
|
virtual |
Parameter decorrelation.
Performs PCA (Principal component analysis) on the input dataset.
◆ ReadInput()
void PndMvaDataSet::ReadInput |
( |
| ) |
|
|
protected |
◆ ReadWeightsFromFile()
void PndMvaDataSet::ReadWeightsFromFile |
( |
| ) |
|
|
protected |
Read Weights and parameters from file.
◆ SetAppType()
void PndMvaDataSet::SetAppType |
( |
AppType |
t | ) |
|
|
inline |
◆ SetNormType()
void PndMvaDataSet::SetNormType |
( |
NormType |
t | ) |
|
|
inline |
- Parameters
-
t | Normalization type (VARX, MINMAX, MEDIAN). |
Definition at line 358 of file PndMvaDataSet.h.
◆ SetRndSeed()
void PndMvaDataSet::SetRndSeed |
( |
size_t const |
sd | ) |
|
|
inline |
◆ SetTrim()
void PndMvaDataSet::SetTrim |
( |
bool |
t | ) |
|
|
inline |
◆ Use_PCA()
void PndMvaDataSet::Use_PCA |
( |
bool |
t | ) |
|
|
inline |
◆ Used_PCA()
bool PndMvaDataSet::Used_PCA |
( |
| ) |
const |
|
inline |
◆ WriteDataSet()
virtual void PndMvaDataSet::WriteDataSet |
( |
std::string const & |
outFile | ) |
|
|
virtual |
Write the normalized DataSet to the out-put file.
- Parameters
-
outFile | File name to write to |
The documentation for this class was generated from the following file: