PandaRoot
StepError Struct Reference

Structure to hold the per step error values. More...

#include <PndMvaUtil.h>

Public Member Functions

 StepError ()
 Constructor. More...
 
 StepError (size_t step, float trErr, float tsErr, std::map< std::string, float > const &MisClsTest, std::map< std::string, float > const &MisClsTrain)
 
virtual ~StepError ()
 Destructor. More...
 
 StepError (StepError const &ot)
 Copy! More...
 
StepErroroperator= (StepError const &ot)
 Assignment. More...
 

Public Attributes

unsigned int m_step
 
float m_trErr
 Step number. More...
 
float m_tsErr
 Train Error. More...
 
std::map< std::string, float > m_MisClsTest
 Test Error. More...
 
std::map< std::string, float > m_MisClsTrain
 

Detailed Description

Structure to hold the per step error values.

Definition at line 34 of file PndMvaUtil.h.

Constructor & Destructor Documentation

◆ StepError() [1/3]

StepError::StepError ( )
inline

Constructor.

Definition at line 36 of file PndMvaUtil.h.

36 : m_step(0), m_trErr(0.0), m_tsErr(0.0), m_MisClsTest(std::map<std::string, float>()), m_MisClsTrain(std::map<std::string, float>()){};
float m_tsErr
Train Error.
Definition: PndMvaUtil.h:70
std::map< std::string, float > m_MisClsTrain
Definition: PndMvaUtil.h:72
unsigned int m_step
Definition: PndMvaUtil.h:66
float m_trErr
Step number.
Definition: PndMvaUtil.h:69
std::map< std::string, float > m_MisClsTest
Test Error.
Definition: PndMvaUtil.h:71

◆ StepError() [2/3]

StepError::StepError ( size_t  step,
float  trErr,
float  tsErr,
std::map< std::string, float > const &  MisClsTest,
std::map< std::string, float > const &  MisClsTrain 
)
inlineexplicit
Parameters
stepCurrents step.
trErrCurrent training error.
tsErrCurrent test error.
MisClsTestMis-classified test events per label.
MisClsTrainMis-classified train events per label.

Definition at line 45 of file PndMvaUtil.h.

46  : m_step(step), m_trErr(trErr), m_tsErr(tsErr), m_MisClsTest(MisClsTest), m_MisClsTrain(MisClsTrain){};
float m_tsErr
Train Error.
Definition: PndMvaUtil.h:70
std::map< std::string, float > m_MisClsTrain
Definition: PndMvaUtil.h:72
unsigned int m_step
Definition: PndMvaUtil.h:66
float m_trErr
Step number.
Definition: PndMvaUtil.h:69
std::map< std::string, float > m_MisClsTest
Test Error.
Definition: PndMvaUtil.h:71

◆ ~StepError()

virtual StepError::~StepError ( )
inlinevirtual

Destructor.

Definition at line 49 of file PndMvaUtil.h.

49 {};

◆ StepError() [3/3]

StepError::StepError ( StepError const &  ot)
inline

Copy!

Definition at line 52 of file PndMvaUtil.h.

52 : m_step(ot.m_step), m_trErr(ot.m_trErr), m_tsErr(ot.m_tsErr), m_MisClsTest(ot.m_MisClsTest), m_MisClsTrain(ot.m_MisClsTrain){};
float m_tsErr
Train Error.
Definition: PndMvaUtil.h:70
std::map< std::string, float > m_MisClsTrain
Definition: PndMvaUtil.h:72
unsigned int m_step
Definition: PndMvaUtil.h:66
float m_trErr
Step number.
Definition: PndMvaUtil.h:69
std::map< std::string, float > m_MisClsTest
Test Error.
Definition: PndMvaUtil.h:71

Member Function Documentation

◆ operator=()

StepError& StepError::operator= ( StepError const &  ot)
inline

Assignment.

Definition at line 55 of file PndMvaUtil.h.

References m_MisClsTest, m_MisClsTrain, m_step, m_trErr, and m_tsErr.

56  {
57  // check for self-assignment
58  if (this != &ot) { // Not equal, thus deep copy
59  this->m_step = ot.m_step;
60  this->m_trErr = ot.m_trErr;
61  this->m_tsErr = ot.m_tsErr;
62  this->m_MisClsTest = ot.m_MisClsTest;
63  this->m_MisClsTrain = ot.m_MisClsTrain;
64  }
65  return (*this);
66  };
float m_tsErr
Train Error.
Definition: PndMvaUtil.h:70
std::map< std::string, float > m_MisClsTrain
Definition: PndMvaUtil.h:72
unsigned int m_step
Definition: PndMvaUtil.h:66
float m_trErr
Step number.
Definition: PndMvaUtil.h:69
std::map< std::string, float > m_MisClsTest
Test Error.
Definition: PndMvaUtil.h:71

Member Data Documentation

◆ m_MisClsTest

std::map<std::string, float> StepError::m_MisClsTest

Test Error.

Mis-classified test events/label

Definition at line 71 of file PndMvaUtil.h.

Referenced by operator=().

◆ m_MisClsTrain

std::map<std::string, float> StepError::m_MisClsTrain

Mis-classified train events/label

Definition at line 72 of file PndMvaUtil.h.

Referenced by operator=().

◆ m_step

unsigned int StepError::m_step

Definition at line 66 of file PndMvaUtil.h.

Referenced by operator=().

◆ m_trErr

float StepError::m_trErr

Step number.

Definition at line 69 of file PndMvaUtil.h.

Referenced by operator=().

◆ m_tsErr

float StepError::m_tsErr

Train Error.

Definition at line 70 of file PndMvaUtil.h.

Referenced by operator=().


The documentation for this struct was generated from the following file: