10#ifndef INCLUDE_GUARD_BELLE2_MVA_EXPERT_HEADER
11#define INCLUDE_GUARD_BELLE2_MVA_EXPERT_HEADER
13#include <mva/interface/Options.h>
14#include <mva/interface/Dataset.h>
15#include <mva/interface/Weightfile.h>
59 B2ERROR(
"Attempted to call applyMulticlass() of the abstract base class MVA::Expert. All methods that support multiclass classification should override this definition.");
62 return std::vector<std::vector<float>>();
Abstract base class of all Datasets given to the MVA interface The current event can always be access...
Abstract base class of all Expert Each MVA library has its own implementation of this class,...
virtual std::vector< float > apply(Dataset &test_data) const =0
Apply this expert onto a dataset.
GeneralOptions m_general_options
General options loaded from the weightfile.
Expert()=default
Default constructor.
virtual std::vector< std::vector< float > > applyMulticlass(Dataset &test_data) const
Apply this m_expert onto a dataset.
virtual void load(Weightfile &weightfile)=0
Load the expert from a Weightfile.
virtual ~Expert()=default
Virtual destructor.
General options which are shared by all MVA trainings.
The Weightfile class serializes all information about a training into an xml tree.
Abstract base class for different kinds of events.