Belle II Software  release-05-02-19
TMVAExpertMulticlass Class Reference

Expert for the TMVA Multiclass MVA method. More...

#include <TMVA.h>

Inheritance diagram for TMVAExpertMulticlass:
Collaboration diagram for TMVAExpertMulticlass:

Public Member Functions

virtual void load (Weightfile &weightfile) override
 Load the expert from a Weightfile. More...
 
virtual std::vector< float > apply (Dataset &test_data) const override
 Apply this m_expert onto a dataset. More...
 
virtual std::vector< float > apply (Dataset &test_data, const unsigned int classID) const override
 Apply this expert onto a dataset. More...
 

Protected Attributes

TMVAOptionsMulticlass specific_options
 Method specific options.
 
std::unique_ptr< TMVA::Reader > m_expert
 TMVA::Reader pointer.
 
std::vector< float > m_input_cache
 Input Cache for TMVA::Reader: Otherwise we would have to set the branch addresses in each apply call.
 
std::vector< float > m_spectators_cache
 Spectators Cache for TMVA::Reader: Otherwise we would have to set the branch addresses in each apply call.
 
GeneralOptions m_general_options
 General options loaded from the weightfile.
 

Detailed Description

Expert for the TMVA Multiclass MVA method.

Definition at line 341 of file TMVA.h.

Member Function Documentation

◆ apply() [1/2]

virtual std::vector<float> apply ( Dataset test_data) const
inlineoverridevirtual

Apply this m_expert onto a dataset.

Parameters
test_datadataset

Implements Expert.

Definition at line 354 of file TMVA.h.

355  {
356  (void) test_data;
357  return std::vector<float>();
358  };

◆ apply() [2/2]

std::vector< float > apply ( Dataset test_data,
const unsigned int  classID 
) const
overridevirtual

Apply this expert onto a dataset.

Multi-class mode signature.

Parameters
test_datadataset
classIDclass identifier.

Reimplemented from Expert.

Definition at line 587 of file TMVA.cc.

◆ load()

void load ( Weightfile weightfile)
overridevirtual

Load the expert from a Weightfile.

Parameters
weightfilecontaining all information necessary to build the m_expert

Reimplemented from TMVAExpert.

Definition at line 506 of file TMVA.cc.


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