Belle II Software development
|
Class to interact with the MVA package, based on class with same name in CDC package. More...
#include <MVAExpert.h>
Public Member Functions | |
MVAExpert (const std::string &identifier, std::vector< Named< float * > > namedVariables) | |
Construct the Expert with the specified weight folder and the name of the training that was used in the teacher run. | |
void | initialize () |
Initialise the mva method. | |
void | beginRun () |
Update the mva method to the new run. | |
std::unique_ptr< MVA::Weightfile > | getWeightFile () |
Resolves the source of the weight file and unpacks it. | |
float | predict () |
Evaluate the MVA method and return the MVAOutput. | |
Private Attributes | |
std::vector< Named< float * > > | m_allNamedVariables |
References to the named values from the source variable set. | |
std::vector< Named< float * > > | 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. | |
std::string | m_identifier |
DB identifier of the expert or file name. | |
Class to interact with the MVA package, based on class with same name in CDC package.
Definition at line 33 of file MVAExpert.h.
Construct the Expert with the specified weight folder and the name of the training that was used in the teacher run.
identifier | A database identifier or local file name. |
namedVariables | The names and pointers to the variables to be fed to the mva method |
Definition at line 20 of file MVAExpert.cc.
void beginRun | ( | ) |
Update the mva method to the new run.
Definition at line 38 of file MVAExpert.cc.
std::unique_ptr< MVA::Weightfile > getWeightFile | ( | ) |
Resolves the source of the weight file and unpacks it.
Definition at line 87 of file MVAExpert.cc.
void initialize | ( | ) |
Initialise the mva method.
Definition at line 27 of file MVAExpert.cc.
float predict | ( | ) |
Evaluate the MVA method and return the MVAOutput.
Definition at line 98 of file MVAExpert.cc.
|
private |
References to the named values from the source variable set.
Definition at line 57 of file MVAExpert.h.
|
private |
Pointer to the current dataset.
Definition at line 69 of file MVAExpert.h.
|
private |
Pointer to the current MVA Expert.
Definition at line 66 of file MVAExpert.h.
|
private |
DB identifier of the expert or file name.
Definition at line 72 of file MVAExpert.h.
|
private |
References to the selected named values from the source variable set.
Definition at line 60 of file MVAExpert.h.
|
private |
Database pointer to the Database representation of the weightfile.
Definition at line 63 of file MVAExpert.h.