10#ifndef INCLUDE_GUARD_BELLE2_MVA_REWEIGHTER_HEADER
11#define INCLUDE_GUARD_BELLE2_MVA_REWEIGHTER_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 "Reweighter"; }
97 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.
Expert for the Reweighter MVA method.
virtual std::vector< float > apply(Dataset &test_data) const override
Apply this expert onto a dataset.
std::unique_ptr< Expert > m_expert
Experts used to reweight.
virtual void load(Weightfile &weightfile) override
Load the expert from a Weightfile.
GeneralOptions m_expert_options
Method general options of the expert.
ReweighterOptions m_specific_options
Method specific options.
double m_norm
Norm for the weights.
Options for the Reweighter MVA method.
virtual std::string getMethod() const override
Return method name.
std::string m_weightfile
Weightfile of the reweighting expert.
virtual po::options_description getDescription() override
Returns a program options description for all available options.
std::string m_variable
Variable which decides if the reweighter is applied or not.
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 Reweighter MVA method.
ReweighterOptions 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.
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.