 |
Belle II Software
release-05-01-25
|
12 #ifndef INCLUDE_GUARD_BELLE2_MVA_TRIVIAL_HEADER
13 #define INCLUDE_GUARD_BELLE2_MVA_TRIVIAL_HEADER
15 #include <mva/interface/Options.h>
16 #include <mva/interface/Teacher.h>
17 #include <mva/interface/Expert.h>
37 virtual void load(
const boost::property_tree::ptree& pt)
override;
43 virtual void save(boost::property_tree::ptree& pt)
const override;
53 virtual std::string
getMethod()
const override {
return "Trivial"; }
99 virtual std::vector<float>
apply(
Dataset& test_data)
const override;
TrivialTeacher(const GeneralOptions &general_options, const TrivialOptions &specific_options)
Constructs a new teacher using the GeneralOptions and specific options of this training.
Abstract base class of all Datasets given to the MVA interface The current event can always be access...
virtual void save(boost::property_tree::ptree &pt) const override
Save mechanism to store Options in a xml tree.
Expert for the Trivial MVA method.
virtual std::string getMethod() const override
Return method name.
The Weightfile class serializes all information about a training into an xml tree.
Teacher for the Trivial MVA method.
virtual void load(Weightfile &weightfile) override
Load the expert from a Weightfile.
Specific Options, all mehtod Options have to inherit from this class.
TrivialOptions m_specific_options
Method specific options.
virtual po::options_description getDescription() override
Returns a program options description for all available options.
Abstract base class for different kinds of events.
Abstract base class of all Teachers Each MVA library has its own implementation of this class,...
virtual std::vector< float > apply(Dataset &test_data) const override
Apply this expert onto a dataset.
Options for the Trivial MVA method.
Abstract base class of all Expert Each MVA library has its own implementation of this class,...
virtual Weightfile train(Dataset &training_data) const override
Train a mva method using the given dataset returning a Weightfile.
General options which are shared by all MVA trainings.
double m_output
Output of the trivial method.
virtual void load(const boost::property_tree::ptree &pt) override
Load mechanism to load Options from a xml tree.
TrivialOptions m_specific_options
Method specific options.