![]() |
Belle II Software development
|
Expert for the TMVA MVA method. More...
#include <TMVA.h>
Public Member Functions | |
virtual void | load (Weightfile &weightfile) override |
Load the expert from a Weightfile. | |
virtual std::vector< float > | apply (Dataset &test_data) const =0 |
Apply this expert onto a dataset. | |
virtual std::vector< std::vector< float > > | applyMulticlass (Dataset &test_data) const |
Apply this m_expert onto a dataset. | |
Protected Attributes | |
std::unique_ptr< TMVA::Reader > | m_expert |
TMVA::Reader pointer. | |
std::vector< float > | m_input_cache |
Input Cache for TMVA::Reader: Otherwise we would have to set the branch addresses in each apply call. | |
std::vector< float > | m_spectators_cache |
Spectators Cache for TMVA::Reader: Otherwise we would have to set the branch addresses in each apply call. | |
GeneralOptions | m_general_options |
General options loaded from the weightfile. | |
|
pure virtualinherited |
Apply this expert onto a dataset.
test_data | dataset |
Implemented in CombinationExpert, FANNExpert, FastBDTExpert, ONNXExpert, PDFExpert, PythonExpert, RegressionExpert< BaseClassifierExpert, RegressionClassifierOptions >, RegressionExpert< FastBDTExpert, RegressionFastBDTOptions >, RegressionExpert< FastBDTExpert, RegressionFastBDTOptions >, ReweighterExpert, TMVAExpertClassification, TMVAExpertMulticlass, TMVAExpertRegression, and TrivialExpert.
|
inlinevirtualinherited |
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 ONNXExpert, PythonExpert, TMVAExpertMulticlass, and TrivialExpert.
Definition at line 56 of file Expert.h.
|
overridevirtual |
Load the expert from a Weightfile.
weightfile | containing all information necessary to build the expert |
Implements Expert.
Reimplemented in TMVAExpertClassification, TMVAExpertMulticlass, and TMVAExpertRegression.
Definition at line 385 of file TMVA.cc.
|
protected |
|
protectedinherited |
|
mutableprotected |
|
mutableprotected |