Belle II Software development
|
Implementation of the class to interact with the MVA package. More...
Public Member Functions | |
Impl (const std::string &identifier, std::vector< Named< Float_t * > > namedVariables) | |
constructor | |
void | initialize () |
Signal the beginning of the event processing. | |
void | beginRun () |
Called once before a new run begins. | |
std::unique_ptr< MVA::Weightfile > | getWeightFile () |
Get the weight file. | |
double | predict () |
Get the MVA prediction. | |
std::vector< float > | predict (float *, int, int) |
Get predictions for several inputs. | |
std::vector< std::string > | getVariableNames () |
Get predictions for several inputs. | |
Private Attributes | |
std::vector< Named< Float_t * > > | m_allNamedVariables |
References to the all named values from the source variable set. | |
std::vector< Named< Float_t * > > | m_selectedNamedVariables |
References to the selected named values from the source variable set. | |
std::unique_ptr< DBObjPtr< DatabaseRepresentationOfWeightfile > > | m_weightfileRepresentation |
Database pointer to the Database representation of the weightfile. | |
std::unique_ptr< MVA::Expert > | m_expert |
Pointer to the current MVA Expert. | |
std::unique_ptr< MVA::Dataset > | m_dataset |
Pointer to the current dataset. | |
MVA::GeneralOptions | m_generalOptions |
General options. | |
std::string | m_identifier |
DB identifier of the expert or file name. | |
Implementation of the class to interact with the MVA package.
Definition at line 31 of file MVAExpert.cc.
constructor
Definition at line 78 of file MVAExpert.cc.
void beginRun | ( | ) |
Called once before a new run begins.
Definition at line 96 of file MVAExpert.cc.
std::vector< std::string > getVariableNames | ( | ) |
Get predictions for several inputs.
Definition at line 185 of file MVAExpert.cc.
std::unique_ptr< MVA::Weightfile > getWeightFile | ( | ) |
Get the weight file.
Definition at line 144 of file MVAExpert.cc.
void initialize | ( | ) |
Signal the beginning of the event processing.
Definition at line 85 of file MVAExpert.cc.
double predict | ( | ) |
Definition at line 155 of file MVAExpert.cc.
std::vector< float > predict | ( | float * | test_data, |
int | nFeature, | ||
int | nRows | ||
) |
Get predictions for several inputs.
Definition at line 169 of file MVAExpert.cc.
|
private |
References to the all named values from the source variable set.
Definition at line 43 of file MVAExpert.cc.
|
private |
Pointer to the current dataset.
Definition at line 55 of file MVAExpert.cc.
|
private |
Pointer to the current MVA Expert.
Definition at line 52 of file MVAExpert.cc.
|
private |
General options.
Definition at line 58 of file MVAExpert.cc.
|
private |
DB identifier of the expert or file name.
Definition at line 61 of file MVAExpert.cc.
|
private |
References to the selected named values from the source variable set.
Definition at line 46 of file MVAExpert.cc.
|
private |
Database pointer to the Database representation of the weightfile.
Definition at line 49 of file MVAExpert.cc.