 |
Belle II Software
release-05-02-19
|
12 #ifndef INCLUDE_GUARD_BELLE2_MVA_COMBINATION_HEADER
13 #define INCLUDE_GUARD_BELLE2_MVA_COMBINATION_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 "Combination"; }
98 virtual std::vector<float>
apply(
Dataset& test_data)
const override;
virtual po::options_description getDescription() override
Returns a program options description for all available options.
CombinationTeacher(const GeneralOptions &general_options, const CombinationOptions &specific_options)
Constructs a new teacher using the GeneralOptions and specific options of this training.
Expert for the Combination MVA method.
CombinationOptions m_specific_options
Method specific options.
Teacher for the Combination MVA method.
Abstract base class of all Datasets given to the MVA interface The current event can always be access...
The Weightfile class serializes all information about a training into an xml tree.
std::vector< std::unique_ptr< Expert > > m_experts
Experts of the methods to combine.
std::vector< std::vector< std::string > > m_expert_variables
Results of the experts to combine.
virtual void save(boost::property_tree::ptree &pt) const override
Save mechanism to store Options in a xml tree.
Specific Options, all mehtod Options have to inherit from this class.
virtual Weightfile train(Dataset &training_data) const override
Train a mva method using the given dataset returning a Weightfile.
CombinationOptions m_specific_options
Method specific options.
virtual void load(Weightfile &weightfile) override
Load the expert from a Weightfile.
Abstract base class for different kinds of events.
Abstract base class of all Teachers Each MVA library has its own implementation of this class,...
Options for the Combination MVA method.
virtual std::vector< float > apply(Dataset &test_data) const override
Apply this expert onto a dataset.
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.
std::vector< std::string > m_weightfiles
Weightfiles of all methods we want to combine.
virtual std::string getMethod() const override
Return method name.
virtual void load(const boost::property_tree::ptree &pt) override
Load mechanism to load Options from a xml tree.