![]() |
Belle II Software
release-05-01-25
|
Abstract base class of all Expert Each MVA library has its own implementation of this class, so all libraries can be accessed via this common interface. More...
#include <Expert.h>
Public Member Functions | |
Expert ()=default | |
Default constructor. | |
virtual void | load (Weightfile &weightfile)=0 |
Load the expert from a Weightfile. More... | |
virtual std::vector< float > | apply (Dataset &test_data) const =0 |
Apply this expert onto a dataset. More... | |
virtual std::vector< float > | apply (Dataset &test_data, const unsigned int classID) const |
Apply this expert onto a dataset. More... | |
virtual | ~Expert ()=default |
Virtual destructor. | |
Protected Attributes | |
GeneralOptions | m_general_options |
General options loaded from the weightfile. | |
Abstract base class of all Expert Each MVA library has its own implementation of this class, so all libraries can be accessed via this common interface.
|
pure virtual |
Apply this expert onto a dataset.
test_data | dataset |
Implemented in TMVAExpertRegression, TMVAExpertMulticlass, TMVAExpertClassification, RegressionExpert< BaseClassifierExpert, RegressionClassifierOptions >, FastBDTExpert, PythonExpert, FANNExpert, PDFExpert, ReweighterExpert, TrivialExpert, and CombinationExpert.
|
inlinevirtual |
Apply this expert onto a dataset.
Multi-class mode signature. Not pure virtual, since not all derived classes need to re-implement this.
test_data | dataset |
classID | class identifier. |
Reimplemented in TMVAExpertMulticlass.
|
pure virtual |
Load the expert from a Weightfile.
weightfile | containing all information necessary to build the expert |
Implemented in TMVAExpertRegression, TMVAExpertMulticlass, TMVAExpertClassification, TMVAExpert, RegressionExpert< BaseClassifierExpert, RegressionClassifierOptions >, FastBDTExpert, PythonExpert, FANNExpert, PDFExpert, ReweighterExpert, TrivialExpert, and CombinationExpert.