10#ifndef INCLUDE_GUARD_BELLE2_MVA_COMBINATION_HEADER
11#define INCLUDE_GUARD_BELLE2_MVA_COMBINATION_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 "Combination"; }
96 virtual std::vector<float>
apply(
Dataset& test_data)
const override;
Expert for the Combination MVA method.
std::vector< std::unique_ptr< Expert > > m_experts
Experts of the methods to combine.
virtual std::vector< float > apply(Dataset &test_data) const override
Apply this expert onto a dataset.
CombinationOptions m_specific_options
Method specific options.
virtual void load(Weightfile &weightfile) override
Load the expert from a Weightfile.
std::vector< std::vector< std::string > > m_expert_variables
Results of the experts to combine.
Options for the Combination MVA method.
virtual std::string getMethod() const override
Return method name.
virtual po::options_description getDescription() override
Returns a program options description for all available options.
std::vector< std::string > m_weightfiles
Weightfiles of all methods we want to combine.
virtual void load(const boost::property_tree::ptree &pt) override
Load mechanism to load Options from a xml tree.
virtual void save(boost::property_tree::ptree &pt) const override
Save mechanism to store Options in a xml tree.
Teacher for the Combination MVA method.
CombinationOptions 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.
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,...
The Weightfile class serializes all information about a training into an xml tree.
Abstract base class for different kinds of events.