Belle II Software
release-08-01-10
|
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< std::vector< float > > | applyMulticlass (Dataset &test_data) const |
Apply this m_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 TrivialExpert, TMVAExpertRegression, TMVAExpertMulticlass, TMVAExpertClassification, ReweighterExpert, RegressionExpert< BaseClassifierExpert, RegressionClassifierOptions >, PythonExpert, PDFExpert, FastBDTExpert, FANNExpert, and CombinationExpert.
|
inlinevirtual |
Apply this m_expert onto a dataset.
Multiclass mode. Not pure virtual, since not all derived classes to re-implement this.
test_data | dataset. |
Reimplemented in TrivialExpert, TMVAExpertMulticlass, and PythonExpert.
|
pure virtual |
Load the expert from a Weightfile.
weightfile | containing all information necessary to build the expert |
Implemented in TrivialExpert, TMVAExpertRegression, TMVAExpertMulticlass, TMVAExpertClassification, TMVAExpert, ReweighterExpert, RegressionExpert< BaseClassifierExpert, RegressionClassifierOptions >, PythonExpert, PDFExpert, FastBDTExpert, FANNExpert, and CombinationExpert.