Machine Learning Library
|
#include <CMultiClassSVM.h>
Public Types | |
enum | TMultiClassSVMType { ONE_VS_ALL, ONE_VS_ONE } |
Public Member Functions | |
CMultiClassSVM (int iNumClasses, TMultiClassSVMType tType=ONE_VS_ALL) | |
Constructor. More... | |
~CMultiClassSVM () | |
Destructor. More... | |
int | classify (const CVector< Type > &tPattern) const |
void | classify (const CVector< Type > &, Type &, Type &) const |
int | classify (const CVector< Type > &, CDenseVector< Type > &rtVotes) const |
void | setKernel (CKernel< Type > *ptKernel) |
Set kernel functiob. More... | |
void | setRegularization (Type tC) |
Set regularization value. More... | |
void | setMaxTerminationError (Type tTE) |
Set termination error. More... | |
void | setCalibratedOutput (bool bSwitch) |
void | trainCalibratedOneVsAll (vector< CDataset< Type > > &rtClassDs) |
void | setCacheSize (int iSize) |
Set size of kernel cache. More... | |
const CKernel< Type > * | kernel () const |
void | train (const CDataset< Type > &rtDataset) |
string | className () const |
bool | isA (const char *acClass) const |
bool | serialize2 (CArchiv &tA) |
Protected Member Functions | |
void | trainOneVsAll (vector< CDataset< Type > > &rtClassData) |
void | trainOneVsOne (vector< CDataset< Type > > &rtClassData) |
Protected Attributes | |
vector< CSVMModel< Type > > | m_tClassifiers |
CDenseVector< int > | m_tNumClassItems |
TMultiClassSVMType | m_tType |
CKernel< Type > * | m_ptKernel |
Type | m_tC |
Type | m_tMaxTerminationError |
bool | m_bCalibrated |
int | m_iCacheSize |
int | m_iCalibrationFolds |
COneVsAllCalibration< Type > | m_tOneVsAllCalibration |
enum CMultiClassSVM::TMultiClassSVMType |
CMultiClassSVM< Type >::CMultiClassSVM | ( | int | iNumClasses, |
TMultiClassSVMType | tType = ONE_VS_ALL |
||
) |
Constructor.
CMultiClassSVM< Type >::~CMultiClassSVM | ( | ) |
Destructor.
int CMultiClassSVM< Type >::classify | ( | const CVector< Type > & | tPattern | ) | const |
|
inline |
int CMultiClassSVM< Type >::classify | ( | const CVector< Type > & | , |
CDenseVector< Type > & | rtVotes | ||
) | const |
string CMultiClassSVM< Type >::className | ( | ) | const |
bool CMultiClassSVM< Type >::isA | ( | const char * | acClass | ) | const |
|
inline |
References CMultiClassSVM< Type >::m_ptKernel.
bool CMultiClassSVM< Type >::serialize2 | ( | CArchiv & | tA | ) |
|
inline |
Set size of kernel cache.
References CMultiClassSVM< Type >::m_iCacheSize.
|
inline |
References CMultiClassSVM< Type >::m_bCalibrated.
void CMultiClassSVM< Type >::setKernel | ( | CKernel< Type > * | ptKernel | ) |
Set kernel functiob.
|
inline |
Set termination error.
References CMultiClassSVM< Type >::m_tMaxTerminationError.
|
inline |
Set regularization value.
References CMultiClassSVM< Type >::m_tC.
void CMultiClassSVM< Type >::train | ( | const CDataset< Type > & | rtDataset | ) |
void CMultiClassSVM< Type >::trainCalibratedOneVsAll | ( | vector< CDataset< Type > > & | rtClassDs | ) |
|
protected |
|
protected |
|
protected |
Referenced by CMultiClassSVM< Type >::setCalibratedOutput().
|
protected |
Referenced by CMultiClassSVM< Type >::setCacheSize().
|
protected |
|
protected |
Referenced by CMultiClassSVM< Type >::kernel().
|
protected |
Referenced by CMultiClassSVM< Type >::setRegularization().
|
protected |
|
protected |
Referenced by CMultiClassSVM< Type >::setMaxTerminationError().
|
protected |
|
protected |
|
protected |