 |
Belle II Software
release-05-02-19
|
12 #ifndef INCLUDE_GUARD_BELLE2_MVA_PDF_HEADER
13 #define INCLUDE_GUARD_BELLE2_MVA_PDF_HEADER
15 #include <mva/interface/Options.h>
16 #include <mva/interface/Teacher.h>
17 #include <mva/interface/Expert.h>
18 #include <mva/utility/Binning.h>
38 virtual void load(
const boost::property_tree::ptree& pt)
override;
44 virtual void save(boost::property_tree::ptree& pt)
const override;
54 virtual std::string
getMethod()
const override {
return "PDF"; }
101 virtual std::vector<float>
apply(
Dataset& test_data)
const override;
PDFOptions m_specific_options
Specific options of the PDF method.
unsigned int m_nBins
number of bins used to bin the data
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.
PDFOptions m_specific_options
Specific options of the PDF method.
Teacher for the PDF MVA method.
Specific Options, all mehtod Options have to inherit from this class.
virtual po::options_description getDescription() override
Returns a program options description for all available options.
PDFTeacher(const GeneralOptions &general_options, const PDFOptions &specific_options)
Constructs a new teacher using the GeneralOptions and PDFoptions for this training.
std::string m_mode
mode which defines the final output e.g.
Abstract base class for different kinds of events.
Abstract base class of all Teachers Each MVA library has its own implementation of this class,...
std::string m_binning
which type of binning is performed e.g.
Options for the PDF MVA method.
virtual void load(Weightfile &weightfile) override
Load the PDF expert from a Weightfile.
Expert for the PDF MVA method.
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.
virtual Weightfile train(Dataset &training_data) const override
Train PDF method using the given dataset returning a Weightfile.
virtual std::vector< float > apply(Dataset &test_data) const override
Apply PDF expert onto a dataset.
virtual void load(const boost::property_tree::ptree &pt) override
Load mechanism (used by Weightfile) to load Options from a xml tree.
Binning m_binning
used binning
Binning of a data distribution Provides PDF and CDF values of the distribution per bin.
virtual void save(boost::property_tree::ptree &pt) const override
Save mechanism (used by Weightfile) to store Options in a xml tree.
std::vector< double > m_value
value returned by expert for each bin
virtual std::string getMethod() const override
Return method name.