Belle II Software  release-08-01-10
MVAExpert Class Reference

Class to interact with the MVA package, based on class with same name in CDC package. More...

#include <MVAExpert.h>

Collaboration diagram for MVAExpert:

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. More...
 
void initialize ()
 Initialise the mva method.
 
void beginRun ()
 Update the mva method to the new run.
 
std::unique_ptr< MVA::WeightfilegetWeightFile ()
 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::Expertm_expert
 Pointer to the current MVA Expert.
 
std::unique_ptr< MVA::Datasetm_dataset
 Pointer to the current dataset.
 
std::string m_identifier
 DB identifier of the expert or file name.
 

Detailed Description

Class to interact with the MVA package, based on class with same name in CDC package.

Definition at line 33 of file MVAExpert.h.

Constructor & Destructor Documentation

◆ MVAExpert()

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.

Parameters
identifierA database identifier or local file name.
namedVariablesThe names and pointers to the variables to be fed to the mva method

Definition at line 20 of file MVAExpert.cc.

22  : m_allNamedVariables(std::move(namedVariables))
23  , m_identifier(identifier)
24 {
25 }
std::vector< Named< float * > > m_allNamedVariables
References to the named values from the source variable set.
Definition: MVAExpert.h:57
std::string m_identifier
DB identifier of the expert or file name.
Definition: MVAExpert.h:72

The documentation for this class was generated from the following files: