Machine Learning Library
Public Member Functions | Protected Attributes | List of all members
CSVMModel< Type > Class Template Reference

#include <CSVMModel.h>

Inheritance diagram for CSVMModel< Type >:
CObject< Type >

Public Member Functions

 CSVMModel ()
 
 CSVMModel (const vector< CSVCandidate< Type > > &rtSVs, const CKernel< Type > &rtKernel, Type tBias, Type tSigmoidA=0, Type tSigmoidB=0)
 
 CSVMModel (const CSVMModel< Type > &rtModel)
 
 ~CSVMModel ()
 
CSVMModel< Type > & operator= (const CSVMModel< Type > &rtModel)
 
bool serialize2 (CArchiv &tAr)
 
int classify (const CVector< Type > &rtPattern) const
 
void classify (const CVector< Type > &rtPattern, Type &rtClass, Type &rtMargin) const
 
string className () const
 Returns the class name. More...
 
bool isA (const char *acClass) const
 Check if the object is an instance of the class with given name. More...
 
- Public Member Functions inherited from CObject< Type >
 CObject ()
 Constructor. More...
 
virtual ~CObject ()
 Destructor. More...
 
virtual bool serialize (fstream &stream, IO_MODE mode=READ)
 Read/write from binary stream. More...
 
void setVerbose (VERBOSE_LEVEL tVerbose)
 Set the verbose level. More...
 
VERBOSE_LEVEL verbose (void) const
 Return current verbose level. More...
 
DATATYPE dataType () const
 Returns the template data type. More...
 

Protected Attributes

vector< CSVCandidate< Type > > m_tSVs
 
CKernel< Type > * m_ptKernel
 
CDenseVector< Type > m_tWeight
 
Type m_tBias
 
Type m_tSigmoidA
 
Type m_tSigmoidB
 
bool m_bCalibrated
 
- Protected Attributes inherited from CObject< Type >
unsigned char ucVerbose
 

Constructor & Destructor Documentation

template<class Type>
CSVMModel< Type >::CSVMModel ( )
template<class Type>
CSVMModel< Type >::CSVMModel ( const vector< CSVCandidate< Type > > &  rtSVs,
const CKernel< Type > &  rtKernel,
Type  tBias,
Type  tSigmoidA = 0,
Type  tSigmoidB = 0 
)
template<class Type>
CSVMModel< Type >::CSVMModel ( const CSVMModel< Type > &  rtModel)
template<class Type>
CSVMModel< Type >::~CSVMModel ( )

Member Function Documentation

template<class Type>
int CSVMModel< Type >::classify ( const CVector< Type > &  rtPattern) const
template<class Type>
void CSVMModel< Type >::classify ( const CVector< Type > &  rtPattern,
Type &  rtClass,
Type &  rtMargin 
) const
template<class Type>
string CSVMModel< Type >::className ( ) const
inlinevirtual

Returns the class name.

Reimplemented from CObject< Type >.

Referenced by CSVMModel< Type >::isA().

template<class Type>
bool CSVMModel< Type >::isA ( const char *  acClass) const
inlinevirtual

Check if the object is an instance of the class with given name.

Reimplemented from CObject< Type >.

References CSVMModel< Type >::className(), and CObject< Type >::isA().

template<class Type>
CSVMModel<Type>& CSVMModel< Type >::operator= ( const CSVMModel< Type > &  rtModel)
template<class Type>
bool CSVMModel< Type >::serialize2 ( CArchiv tAr)
virtual

Reimplemented from CObject< Type >.

Member Data Documentation

template<class Type>
bool CSVMModel< Type >::m_bCalibrated
protected
template<class Type>
CKernel<Type>* CSVMModel< Type >::m_ptKernel
protected
template<class Type>
Type CSVMModel< Type >::m_tBias
protected
template<class Type>
Type CSVMModel< Type >::m_tSigmoidA
protected
template<class Type>
Type CSVMModel< Type >::m_tSigmoidB
protected
template<class Type>
vector< CSVCandidate<Type> > CSVMModel< Type >::m_tSVs
protected
template<class Type>
CDenseVector<Type> CSVMModel< Type >::m_tWeight
protected

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