11#include <mva/interface/Interface.h>
12#include <mva/interface/Options.h>
13#include <mva/interface/Weightfile.h>
15namespace Belle2::MVA {
32 static void download(
const std::string& identifier,
const std::string& filename,
int experiment = 0,
int run = 0,
int event = 0);
43 static void upload(
const std::string& filename,
const std::string& identifier,
int exp1 = 0,
int run1 = 0,
int exp2 = -1,
55 static void upload_array(
const std::vector<std::string>& filenames,
const std::string& identifier,
int exp1 = 0,
int run1 = 0,
56 int exp2 = -1,
int run2 = -1);
65 static bool available(
const std::string& filename,
int experiment = 0,
int run = 0,
int event = 0);
72 static void extract(
const std::string& filename,
const std::string& directory);
78 static std::string
info(
const std::string& filename);
88 const std::string& custom_weightfile,
const std::string& output_identifier =
"");
111 static void expert(
const std::vector<std::string>& filenames,
const std::vector<std::string>& datafiles,
112 const std::string& treename,
113 const std::string& outputfile,
int experiment = 0,
int run = 0,
int event = 0,
bool copy_target =
true);
Abstract base class of all Datasets given to the MVA interface The current event can always be access...
General options which are shared by all MVA trainings.
Specific Options, all method Options have to inherit from this class.
Wrapper class for some utility functions.
static void expert(const std::vector< std::string > &filenames, const std::vector< std::string > &datafiles, const std::string &treename, const std::string &outputfile, int experiment=0, int run=0, int event=0, bool copy_target=true)
Convenience function applies experts on given data.
static void upload_array(const std::vector< std::string > &filenames, const std::string &identifier, int exp1=0, int run1=0, int exp2=-1, int run2=-1)
Convenience function which uploads an array of weightfiles to the database.
static void upload(const std::string &filename, const std::string &identifier, int exp1=0, int run1=0, int exp2=-1, int run2=-1)
Convenience function which uploads a given weightfile to the database.
static void download(const std::string &identifier, const std::string &filename, int experiment=0, int run=0, int event=0)
Convenience function which downloads a given weightfile from the database.
static std::unique_ptr< Belle2::MVA::Expert > teacher_sideband_subtraction(const GeneralOptions &general_options, const SpecificOptions &specific_options, const MetaOptions &meta_options)
Performs a sideband subtraction training, convenience function.
static std::unique_ptr< Belle2::MVA::Expert > teacher_reweighting(const GeneralOptions &general_options, const SpecificOptions &specific_options, const MetaOptions &meta_options)
Performs a MC vs data pre-training and afterwards reweighted training, convenience function.
static void teacher(const GeneralOptions &general_options, const SpecificOptions &specific_options, const MetaOptions &meta_options=MetaOptions())
Convenience function which performs a training with the given options.
static void extract(const std::string &filename, const std::string &directory)
Convenience function which extracts the expertise in a given weightfile into a temporary directory.
static std::unique_ptr< Belle2::MVA::Expert > teacher_dataset(GeneralOptions general_options, const SpecificOptions &specific_options, Dataset &data)
Convenience function which performs a training on a dataset.
static std::string info(const std::string &filename)
Print information about the classifier stored in the given weightfile.
static void save_custom_weightfile(const GeneralOptions &general_options, const SpecificOptions &specific_options, const std::string &custom_weightfile, const std::string &output_identifier="")
Convenience function which saves a pre-existing weightfile in a mva package-compliant format.
static std::unique_ptr< Belle2::MVA::Expert > teacher_splot(const GeneralOptions &general_options, const SpecificOptions &specific_options, const MetaOptions &meta_options)
Performs an splot training, convenience function.
static bool available(const std::string &filename, int experiment=0, int run=0, int event=0)
Convenience function which checks if an experise is available.