#include <PndMvaDataSet.h>
Definition at line 88 of file PndMvaDataSet.h.
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::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. |
virtual PndMvaDataSet::~PndMvaDataSet |
( |
| ) |
|
|
virtual |
void PndMvaDataSet::CompClsCondMean |
( |
std::string const & |
clsName, |
|
|
std::set< size_t > const & |
exCluds |
|
) |
| |
|
private |
Class conditional mean for a given label (class). Stored in class conditional means container.
- Parameters
-
clsName | Label for which CCM is computed. |
exCluds | Set of indices of events that are not to be used. |
void PndMvaDataSet::ComputeVariance |
( |
| ) |
|
|
private |
Computes Variance (unbiased estimator) for each parameter in the feature list.
void PndMvaDataSet::DetermineMedian |
( |
| ) |
|
|
private |
Determines the median for parameters of the loaded DataSet.
void PndMvaDataSet::FindMinMax |
( |
| ) |
|
|
private |
Find minimum and maximum per variable.
Get PCA object
- Returns
- PCA object containing PCA parameters.
Definition at line 369 of file PndMvaDataSet.h.
References m_PCA.
PndMvaVarPCATransform m_PCA
AppType PndMvaDataSet::GetAppType |
( |
| ) |
const |
|
inline |
std::map< std::string, std::vector< float > * > const & PndMvaDataSet::GetClassCondMeans |
( |
| ) |
const |
|
inline |
Get classconditional means for all classes (labels).
Definition at line 351 of file PndMvaDataSet.h.
References m_ClassCondMeans.
std::map< std::string, std::vector< float > * > m_ClassCondMeans
Container to keep the Class Conditional means.
std::vector< PndMvaClass > const & PndMvaDataSet::GetClasses |
( |
| ) |
const |
|
inline |
std::vector< std::pair< std::string, std::vector< float > * > > const & PndMvaDataSet::GetData |
( |
| ) |
const |
|
inline |
Get available data vectors.
Definition at line 335 of file PndMvaDataSet.h.
References m_events.
std::vector< std::pair< std::string, std::vector< float > * > > m_events
Container to keep the Event data feature vectors.
std::string const & PndMvaDataSet::GetInFileName |
( |
| ) |
const |
|
inline |
Get name of input file name (weight/event file).
Definition at line 356 of file PndMvaDataSet.h.
References m_input.
std::string m_input
Input File name.
NormType PndMvaDataSet::GetNormType |
( |
| ) |
const |
|
inline |
size_t PndMvaDataSet::GetRndSeed |
( |
| ) |
const |
|
inline |
std::vector< PndMvaVariable > const & PndMvaDataSet::GetVars |
( |
| ) |
const |
|
inline |
void PndMvaDataSet::InitClasses |
( |
std::vector< std::string > const & |
labels | ) |
|
|
private |
Init labels (class names).
- Parameters
-
labels | The list of labels to use. |
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. |
virtual void PndMvaDataSet::Initialize |
( |
| ) |
|
|
virtual |
Init Dataset. Determine how to handle input, based on the application type.
void PndMvaDataSet::InitVariables |
( |
std::vector< std::string > const & |
variables | ) |
|
|
private |
Init Variables.
- Parameters
-
variables | The list of variables to use. |
void PndMvaDataSet::MinMaxDiff |
( |
| ) |
|
|
private |
Determine Min Max difference.
void PndMvaDataSet::NormalizeDataSet |
( |
| ) |
|
|
private |
Normalize event dataset using one of available methods.
virtual void PndMvaDataSet::PCATransForm |
( |
| ) |
|
|
virtual |
Parameter decorrelation.
Performs PCA (Principal component analysis) on the input dataset.
void PndMvaDataSet::ReadInput |
( |
| ) |
|
|
protected |
void PndMvaDataSet::ReadWeightsFromFile |
( |
| ) |
|
|
protected |
Read Weights and parameters from file.
void PndMvaDataSet::SetAppType |
( |
AppType |
t | ) |
|
|
inline |
void PndMvaDataSet::SetNormType |
( |
NormType |
t | ) |
|
|
inline |
void PndMvaDataSet::SetRndSeed |
( |
size_t const |
sd | ) |
|
|
inline |
void PndMvaDataSet::SetTrim |
( |
bool |
t | ) |
|
|
inline |
void PndMvaDataSet::Trim |
( |
| ) |
|
|
private |
Creates a data set with equal number of events for each class.
void PndMvaDataSet::Use_PCA |
( |
bool |
t | ) |
|
|
inline |
bool PndMvaDataSet::Used_PCA |
( |
| ) |
const |
|
inline |
void PndMvaDataSet::ValidateWeightFile |
( |
| ) |
|
|
private |
void PndMvaDataSet::VarNormalize |
( |
| ) |
|
|
private |
VariableNormalizeTransform. Linear interpolation.
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 |
std::map< std::string, std::vector<float>* > PndMvaDataSet::m_ClassCondMeans |
|
private |
std::vector< std::pair<std::string, std::vector<float>*> > PndMvaDataSet::m_events |
|
private |
std::string PndMvaDataSet::m_input |
|
private |
size_t PndMvaDataSet::m_RND_seed |
|
private |
bool PndMvaDataSet::m_trim |
|
private |
bool PndMvaDataSet::m_UsePCA |
|
private |
The documentation for this class was generated from the following file: