Belle II Software light-2406-ragdoll
TrivialTeacher Class Reference

Teacher for the Trivial MVA method. More...

#include <Trivial.h>

Inheritance diagram for TrivialTeacher:
Collaboration diagram for TrivialTeacher:

Public Member Functions

 TrivialTeacher (const GeneralOptions &general_options, const TrivialOptions &specific_options)
 Constructs a new teacher using the GeneralOptions and specific options of this training.
 
virtual Weightfile train (Dataset &training_data) const override
 Train a mva method using the given dataset returning a Weightfile.
 

Protected Attributes

GeneralOptions m_general_options
 GeneralOptions containing all shared options.
 

Private Attributes

TrivialOptions m_specific_options
 Method specific options.
 

Detailed Description

Teacher for the Trivial MVA method.

Used for debugging and testing

Definition at line 62 of file Trivial.h.

Constructor & Destructor Documentation

◆ TrivialTeacher()

TrivialTeacher ( const GeneralOptions general_options,
const TrivialOptions specific_options 
)

Constructs a new teacher using the GeneralOptions and specific options of this training.

Parameters
general_optionsdefining all shared options
specific_optionsdefining all method specific options

Definition at line 64 of file Trivial.cc.

65 : Teacher(general_options),
66 m_specific_options(specific_options) { }
Teacher(const GeneralOptions &general_options)
Constructs a new teacher using the GeneralOptions for this training.
Definition: Teacher.cc:18
TrivialOptions m_specific_options
Method specific options.
Definition: Trivial.h:79

Member Function Documentation

◆ train()

Weightfile train ( Dataset training_data) const
overridevirtual

Train a mva method using the given dataset returning a Weightfile.

Parameters
training_dataused to train the method

Implements Teacher.

Definition at line 68 of file Trivial.cc.

69 {
70 Weightfile weightfile;
71 weightfile.addOptions(m_general_options);
72 weightfile.addOptions(m_specific_options);
73 weightfile.addSignalFraction(training_data.getSignalFraction());
74 return weightfile;
75 }
GeneralOptions m_general_options
GeneralOptions containing all shared options.
Definition: Teacher.h:49

Member Data Documentation

◆ m_general_options

GeneralOptions m_general_options
protectedinherited

GeneralOptions containing all shared options.

Definition at line 49 of file Teacher.h.

◆ m_specific_options

TrivialOptions m_specific_options
private

Method specific options.

Definition at line 79 of file Trivial.h.


The documentation for this class was generated from the following files: