Belle II Software development
Teacher.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10#ifndef INCLUDE_GUARD_BELLE2_MVA_TEACHER_HEADER
11#define INCLUDE_GUARD_BELLE2_MVA_TEACHER_HEADER
12
13#include <mva/interface/Options.h>
14#include <mva/interface/Dataset.h>
15#include <mva/interface/Weightfile.h>
16
17namespace Belle2 {
22 namespace MVA {
23
29 class Teacher {
30 public:
35 explicit Teacher(const GeneralOptions& general_options);
36
41 virtual Weightfile train(Dataset& training_data) const = 0;
42
46 virtual ~Teacher() = default;
47
48 protected:
50 };
51
52 }
54}
55#endif
Abstract base class of all Datasets given to the MVA interface The current event can always be access...
Definition: Dataset.h:33
General options which are shared by all MVA trainings.
Definition: Options.h:62
Abstract base class of all Teachers Each MVA library has its own implementation of this class,...
Definition: Teacher.h:29
GeneralOptions m_general_options
GeneralOptions containing all shared options.
Definition: Teacher.h:49
virtual ~Teacher()=default
Virtual destructor.
virtual Weightfile train(Dataset &training_data) const =0
Train a mva method using the given dataset returning a Weightfile.
The Weightfile class serializes all information about a training into an xml tree.
Definition: Weightfile.h:38
Abstract base class for different kinds of events.