Belle II Software development
MVAExpert Class Reference

Class to interact with the MVA package. More...

#include <MVAExpert.h>

Classes

class  Impl
 Implementation of the class to interact with the MVA package. More...
 

Public Member Functions

 MVAExpert (const std::string &identifier, std::vector< Named< Float_t * > > namedVariables)
 Construct the Expert with the specified weight folder and the name of the training that was used in the teacher run.
 
 ~MVAExpert ()
 Destructor must be defined in cpp because of PImpl pointer.
 
void initialize ()
 Initialise the mva method.
 
void beginRun ()
 Update the mva method to the new run.
 
double predict ()
 Evaluate the MVA method and return the MVAOutput.
 
std::vector< float > predict (float *, int, int nRows)
 Evaluate the MVA method and return the MVAOutput for multiple inputs at the same time.
 
std::vector< std::string > getVariableNames ()
 Get selected variable names.
 

Private Attributes

std::unique_ptr< Implm_impl
 Pointer to implementation hiding the details.
 

Detailed Description

Class to interact with the MVA package.

Definition at line 26 of file MVAExpert.h.

Constructor & Destructor Documentation

◆ MVAExpert()

MVAExpert ( const std::string & identifier,
std::vector< Named< Float_t * > > 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

Member Function Documentation

◆ getVariableNames()

std::vector< std::string > getVariableNames ( )

Get selected variable names.

Definition at line 228 of file MVAExpert.cc.

229{
230 return m_impl->getVariableNames();
231}
std::unique_ptr< Impl > m_impl
Pointer to implementation hiding the details.
Definition MVAExpert.h:59

Member Data Documentation

◆ m_impl

std::unique_ptr<Impl> m_impl
private

Pointer to implementation hiding the details.

Definition at line 59 of file MVAExpert.h.


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