Belle II Software  release-05-01-25
Teacher.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Thomas Keck *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 #ifndef INCLUDE_GUARD_BELLE2_MVA_TEACHER_HEADER
13 #define INCLUDE_GUARD_BELLE2_MVA_TEACHER_HEADER
14 
15 #include <mva/interface/Options.h>
16 #include <mva/interface/Dataset.h>
17 #include <mva/interface/Weightfile.h>
18 
19 namespace Belle2 {
24  namespace MVA {
25 
31  class Teacher {
32  public:
37  explicit Teacher(const GeneralOptions& general_options);
38 
43  virtual Weightfile train(Dataset& training_data) const = 0;
44 
48  virtual ~Teacher() = default;
49 
50  protected:
52  };
53 
54  }
56 }
57 #endif
Belle2::MVA::Dataset
Abstract base class of all Datasets given to the MVA interface The current event can always be access...
Definition: Dataset.h:34
Belle2::MVA::Teacher::Teacher
Teacher(const GeneralOptions &general_options)
Constructs a new teacher using the GeneralOptions for this training.
Definition: Teacher.cc:28
Belle2::MVA::Weightfile
The Weightfile class serializes all information about a training into an xml tree.
Definition: Weightfile.h:40
Belle2::MVA::Teacher::m_general_options
GeneralOptions m_general_options
GeneralOptions containing all shared options.
Definition: Teacher.h:51
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::MVA::Teacher
Abstract base class of all Teachers Each MVA library has its own implementation of this class,...
Definition: Teacher.h:31
Belle2::MVA::GeneralOptions
General options which are shared by all MVA trainings.
Definition: Options.h:64
Belle2::MVA::Teacher::~Teacher
virtual ~Teacher()=default
Virtual destructor.
Belle2::MVA::Teacher::train
virtual Weightfile train(Dataset &training_data) const =0
Train a mva method using the given dataset returning a Weightfile.