10#ifndef INCLUDE_GUARD_BELLE2_MVA_PDF_HEADER
11#define INCLUDE_GUARD_BELLE2_MVA_PDF_HEADER
13#include <mva/interface/Options.h>
14#include <mva/interface/Teacher.h>
15#include <mva/interface/Expert.h>
16#include <mva/utility/Binning.h>
36 virtual void load(
const boost::property_tree::ptree& pt)
override;
42 virtual void save(boost::property_tree::ptree& pt)
const override;
52 virtual std::string
getMethod()
const override {
return "PDF"; }
99 virtual std::vector<float>
apply(
Dataset& test_data)
const override;
Binning of a data distribution Provides PDF and CDF values of the distribution per bin.
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 PDF MVA method.
Binning m_binning
used binning
virtual std::vector< float > apply(Dataset &test_data) const override
Apply PDF expert onto a dataset.
PDFOptions m_specific_options
Specific options of the PDF method.
std::vector< double > m_value
value returned by expert for each bin
virtual void load(Weightfile &weightfile) override
Load the PDF expert from a Weightfile.
Options for the PDF MVA method.
virtual std::string getMethod() const override
Return method name.
unsigned int m_nBins
number of bins used to bin the data
std::string m_binning
which type of binning is performed e.g.
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 (used by Weightfile) to load Options from a xml tree.
virtual void save(boost::property_tree::ptree &pt) const override
Save mechanism (used by Weightfile) to store Options in a xml tree.
std::string m_mode
mode which defines the final output e.g.
Teacher for the PDF MVA method.
PDFOptions m_specific_options
Specific options of the PDF method.
virtual Weightfile train(Dataset &training_data) const override
Train PDF 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.