iRoCS Toolbox  1.1.0
Public Types | Public Member Functions | Protected Member Functions
svt::Model_MC< TCModel > Class Template Reference

#include <Model_MC.hh>

Inheritance diagram for svt::Model_MC< TCModel >:
Collaboration diagram for svt::Model_MC< TCModel >:

Public Types

typedef TCModel::FV_type FV
 

Public Member Functions

 Model_MC ()
 
 Model_MC (const Model_MC< TCModel > &orig)
 
 ~Model_MC ()
 
double classIndexToLabel (unsigned int classIndex) const
 
const std::vector< FV * > & collectedSupportVectors () const
 
void freeCollectedSupportVectors ()
 
std::vector< FV * > getSupportVectors () const
 
bool isModelAffectedByLeftOutVectors (const std::vector< char > &leaveOutFlagsByUID) const
 check, if this model is affected by specified left out vectors, which means, that it needs to be retrained, if these vectors are left out from the training data set More...
 
unsigned int maxUniqueID () const
 
Model_MC< TCModel > & operator= (const Model_MC< TCModel > &orig)
 
void resizeCollectedSupportVectors (unsigned int size)
 
void setClassIndizesToLabels (const std::vector< double > &v)
 

Protected Member Functions

template<typename ForwardIter , typename STDATA >
void calcTrainingStatisticsFromTCModels (const ForwardIter &modelsBegin, const ForwardIter &modelsEnd, STDATA &statistics)
 
template<typename ForwardIter >
void collectSupportVectorsFromTCModels (const ForwardIter &modelsBegin, const ForwardIter &modelsEnd)
 
template<typename STDATA >
void loadSupportVectorsAndClassLabels (STDATA &stData)
 
template<typename STDATA >
void saveSupportVectorsAndClassLabels (STDATA &stData) const
 

Detailed Description

template<typename TCModel>
class svt::Model_MC< TCModel >

Definition at line 65 of file Model_MC.hh.

Member Typedef Documentation

◆ FV

template<typename TCModel>
typedef TCModel::FV_type svt::Model_MC< TCModel >::FV

Definition at line 71 of file Model_MC.hh.

Constructor & Destructor Documentation

◆ Model_MC() [1/2]

template<typename TCModel>
svt::Model_MC< TCModel >::Model_MC ( )
inline

Definition at line 74 of file Model_MC.hh.

◆ ~Model_MC()

template<typename TCModel>
svt::Model_MC< TCModel >::~Model_MC ( )
inline

Definition at line 79 of file Model_MC.hh.

◆ Model_MC() [2/2]

template<typename TCModel>
svt::Model_MC< TCModel >::Model_MC ( const Model_MC< TCModel > &  orig)
inline

Definition at line 84 of file Model_MC.hh.

Member Function Documentation

◆ operator=()

template<typename TCModel>
Model_MC<TCModel>& svt::Model_MC< TCModel >::operator= ( const Model_MC< TCModel > &  orig)
inline

Definition at line 92 of file Model_MC.hh.

◆ resizeCollectedSupportVectors()

template<typename TCModel>
void svt::Model_MC< TCModel >::resizeCollectedSupportVectors ( unsigned int  size)
inline

Definition at line 102 of file Model_MC.hh.

◆ freeCollectedSupportVectors()

template<typename TCModel>
void svt::Model_MC< TCModel >::freeCollectedSupportVectors ( )
inline

◆ collectedSupportVectors()

template<typename TCModel>
const std::vector<FV*>& svt::Model_MC< TCModel >::collectedSupportVectors ( ) const
inline

Definition at line 128 of file Model_MC.hh.

◆ maxUniqueID()

template<typename TCModel>
unsigned int svt::Model_MC< TCModel >::maxUniqueID ( ) const
inline

Definition at line 135 of file Model_MC.hh.

◆ setClassIndizesToLabels()

template<typename TCModel>
void svt::Model_MC< TCModel >::setClassIndizesToLabels ( const std::vector< double > &  v)
inline

Definition at line 140 of file Model_MC.hh.

◆ classIndexToLabel()

template<typename TCModel>
double svt::Model_MC< TCModel >::classIndexToLabel ( unsigned int  classIndex) const
inline

◆ isModelAffectedByLeftOutVectors()

template<typename TCModel>
bool svt::Model_MC< TCModel >::isModelAffectedByLeftOutVectors ( const std::vector< char > &  leaveOutFlagsByUID) const
inline

check, if this model is affected by specified left out vectors, which means, that it needs to be retrained, if these vectors are left out from the training data set

Parameters
leaveOutFlagsByUIDleave out flag for each feature vector, accessed via its uniqueID (true means leave this vector out from training)
Returns
true or false

Definition at line 164 of file Model_MC.hh.

◆ getSupportVectors()

template<typename TCModel>
std::vector<FV*> svt::Model_MC< TCModel >::getSupportVectors ( ) const
inline

Definition at line 178 of file Model_MC.hh.

◆ collectSupportVectorsFromTCModels()

template<typename TCModel>
template<typename ForwardIter >
void svt::Model_MC< TCModel >::collectSupportVectorsFromTCModels ( const ForwardIter &  modelsBegin,
const ForwardIter &  modelsEnd 
)
protected

◆ saveSupportVectorsAndClassLabels()

template<typename TCModel>
template<typename STDATA >
void svt::Model_MC< TCModel >::saveSupportVectorsAndClassLabels ( STDATA &  stData) const
protected

◆ loadSupportVectorsAndClassLabels()

template<typename TCModel>
template<typename STDATA >
void svt::Model_MC< TCModel >::loadSupportVectorsAndClassLabels ( STDATA &  stData)
protected

◆ calcTrainingStatisticsFromTCModels()

template<typename TCModel>
template<typename ForwardIter , typename STDATA >
void svt::Model_MC< TCModel >::calcTrainingStatisticsFromTCModels ( const ForwardIter &  modelsBegin,
const ForwardIter &  modelsEnd,
STDATA &  statistics 
)
protected

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