iRoCS Toolbox  1.1.0
Public Member Functions
svt::PlattProbModel< WrappedModel > Class Template Reference

#include <PlattProbModel.hh>

Inheritance diagram for svt::PlattProbModel< WrappedModel >:
Collaboration diagram for svt::PlattProbModel< WrappedModel >:

Public Member Functions

 PlattProbModel ()
 
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...
 
template<typename STDATA >
void loadParameters (STDATA &stData, const std::string &prefix="")
 load the model data from given structured data. More...
 
template<typename STDATA , typename FV >
void loadParametersWithUIDs (STDATA &stData, const std::vector< FV *> &fvsByUID, const std::string &prefix="")
 (description) More...
 
double probA () const
 
double probB () const
 
template<typename STDATA >
void saveParameters (STDATA &stData, const std::string &prefix="") const
 save the model data to given structured data. More...
 
template<typename STDATA >
void saveParametersWithUIDs (STDATA &stData, const std::string &prefix="") const
 save the model data to string-string map. More...
 
void setProbAB (double a, double b)
 

Detailed Description

template<typename WrappedModel>
class svt::PlattProbModel< WrappedModel >

Definition at line 57 of file PlattProbModel.hh.

Constructor & Destructor Documentation

◆ PlattProbModel()

template<typename WrappedModel >
svt::PlattProbModel< WrappedModel >::PlattProbModel ( )
inline

Definition at line 61 of file PlattProbModel.hh.

Member Function Documentation

◆ setProbAB()

template<typename WrappedModel >
void svt::PlattProbModel< WrappedModel >::setProbAB ( double  a,
double  b 
)
inline

Definition at line 67 of file PlattProbModel.hh.

◆ probA()

template<typename WrappedModel >
double svt::PlattProbModel< WrappedModel >::probA ( ) const
inline

Definition at line 73 of file PlattProbModel.hh.

◆ probB()

template<typename WrappedModel >
double svt::PlattProbModel< WrappedModel >::probB ( ) const
inline

Definition at line 79 of file PlattProbModel.hh.

◆ saveParameters()

template<typename WrappedModel >
template<typename STDATA >
void svt::PlattProbModel< WrappedModel >::saveParameters ( STDATA &  stData,
const std::string &  prefix = "" 
) const
inline

save the model data to given structured data.

Parameters

Definition at line 96 of file PlattProbModel.hh.

◆ loadParameters()

template<typename WrappedModel >
template<typename STDATA >
void svt::PlattProbModel< WrappedModel >::loadParameters ( STDATA &  stData,
const std::string &  prefix = "" 
)
inline

load the model data from given structured data.

Parameters

Definition at line 116 of file PlattProbModel.hh.

◆ saveParametersWithUIDs()

template<typename WrappedModel >
template<typename STDATA >
void svt::PlattProbModel< WrappedModel >::saveParametersWithUIDs ( STDATA &  stData,
const std::string &  prefix = "" 
) const
inline

save the model data to string-string map.

only the uniqueID's of the support vectors are stored in "sv_uids"

Parameters

Definition at line 137 of file PlattProbModel.hh.

◆ loadParametersWithUIDs()

template<typename WrappedModel >
template<typename STDATA , typename FV >
void svt::PlattProbModel< WrappedModel >::loadParametersWithUIDs ( STDATA &  stData,
const std::vector< FV *> &  fvsByUID,
const std::string &  prefix = "" 
)
inline

(description)

Parameters

Definition at line 157 of file PlattProbModel.hh.

◆ isModelAffectedByLeftOutVectors()

template<typename WrappedModel >
bool svt::PlattProbModel< WrappedModel >::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 (1 means leave this vector out from training)
Returns
true or false

Definition at line 179 of file PlattProbModel.hh.


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