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 22 of file PndMvaUtil.h.

Constructor & Destructor Documentation

◆ StepError() [1/3]

StepError::StepError ( )
inline

Constructor.

Definition at line 24 of file PndMvaUtil.h.

24 : 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:58
std::map< std::string, float > m_MisClsTrain
Definition: PndMvaUtil.h:60
unsigned int m_step
Definition: PndMvaUtil.h:54
float m_trErr
Step number.
Definition: PndMvaUtil.h:57
std::map< std::string, float > m_MisClsTest
Test Error.
Definition: PndMvaUtil.h:59

◆ 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 33 of file PndMvaUtil.h.

34  : m_step(step), m_trErr(trErr), m_tsErr(tsErr), m_MisClsTest(MisClsTest), m_MisClsTrain(MisClsTrain){};
float m_tsErr
Train Error.
Definition: PndMvaUtil.h:58
std::map< std::string, float > m_MisClsTrain
Definition: PndMvaUtil.h:60
unsigned int m_step
Definition: PndMvaUtil.h:54
float m_trErr
Step number.
Definition: PndMvaUtil.h:57
std::map< std::string, float > m_MisClsTest
Test Error.
Definition: PndMvaUtil.h:59

◆ ~StepError()

virtual StepError::~StepError ( )
inlinevirtual

Destructor.

Definition at line 37 of file PndMvaUtil.h.

37 {};

◆ StepError() [3/3]

StepError::StepError ( StepError const &  ot)
inline

Copy!

Definition at line 40 of file PndMvaUtil.h.

40 : 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:58
std::map< std::string, float > m_MisClsTrain
Definition: PndMvaUtil.h:60
unsigned int m_step
Definition: PndMvaUtil.h:54
float m_trErr
Step number.
Definition: PndMvaUtil.h:57
std::map< std::string, float > m_MisClsTest
Test Error.
Definition: PndMvaUtil.h:59

Member Function Documentation

◆ operator=()

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

Assignment.

Definition at line 43 of file PndMvaUtil.h.

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

44  {
45  // check for self-assignment
46  if (this != &ot) { // Not equal, thus deep copy
47  this->m_step = ot.m_step;
48  this->m_trErr = ot.m_trErr;
49  this->m_tsErr = ot.m_tsErr;
50  this->m_MisClsTest = ot.m_MisClsTest;
51  this->m_MisClsTrain = ot.m_MisClsTrain;
52  }
53  return (*this);
54  };
float m_tsErr
Train Error.
Definition: PndMvaUtil.h:58
std::map< std::string, float > m_MisClsTrain
Definition: PndMvaUtil.h:60
unsigned int m_step
Definition: PndMvaUtil.h:54
float m_trErr
Step number.
Definition: PndMvaUtil.h:57
std::map< std::string, float > m_MisClsTest
Test Error.
Definition: PndMvaUtil.h:59

Member Data Documentation

◆ m_MisClsTest

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

Test Error.

Mis-classified test events/label

Definition at line 59 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 60 of file PndMvaUtil.h.

Referenced by operator=().

◆ m_step

unsigned int StepError::m_step

Definition at line 54 of file PndMvaUtil.h.

Referenced by operator=().

◆ m_trErr

float StepError::m_trErr

Step number.

Definition at line 57 of file PndMvaUtil.h.

Referenced by operator=().

◆ m_tsErr

float StepError::m_tsErr

Train Error.

Definition at line 58 of file PndMvaUtil.h.

Referenced by operator=().


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