10#ifndef INCLUDE_GUARD_BELLE2_MVA_TRIVIAL_HEADER
11#define INCLUDE_GUARD_BELLE2_MVA_TRIVIAL_HEADER
13#include <mva/interface/Options.h>
14#include <mva/interface/Teacher.h>
15#include <mva/interface/Expert.h>
35 virtual void load(
const boost::property_tree::ptree& pt)
override;
41 virtual void save(boost::property_tree::ptree& pt)
const override;
51 virtual std::string
getMethod()
const override {
return "Trivial"; }
99 virtual std::vector<float>
apply(
Dataset& test_data)
const override;
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,...
General options which are shared by all MVA trainings.
Specific Options, all method Options have to inherit from this class.
Abstract base class of all Teachers Each MVA library has its own implementation of this class,...
Expert for the Trivial MVA method.
TrivialOptions m_specific_options
Method specific options.
virtual std::vector< float > apply(Dataset &test_data) const override
Apply this expert onto a dataset.
virtual void load(Weightfile &weightfile) override
Load the expert from a Weightfile.
virtual std::vector< std::vector< float > > applyMulticlass(Dataset &test_data) const override
Apply this expert onto a dataset.
Options for the Trivial MVA method.
double m_output
Output of the trivial method.
virtual std::string getMethod() const override
Return method name.
std::vector< double > m_multiple_output
Output of the trivial method.
virtual po::options_description getDescription() override
Returns a program options description for all available options.
virtual void load(const boost::property_tree::ptree &pt) override
Load mechanism to load Options from a xml tree.
bool m_passthrough
Flag for passthrough setting.
virtual void save(boost::property_tree::ptree &pt) const override
Save mechanism to store Options in a xml tree.
Teacher for the Trivial MVA method.
TrivialOptions m_specific_options
Method specific options.
virtual Weightfile train(Dataset &training_data) const override
Train a mva method using the given dataset returning a Weightfile.
The Weightfile class serializes all information about a training into an xml tree.
Abstract base class for different kinds of events.