Machine Learning Library
|
OneClass SVM algorithm for estimating the support of a data distribution. More...
#include <COneClassSVM.h>
Public Member Functions | |
COneClassSVM (CKernel< Type > *ptKernel=new CGaussianKernel< Type >(), int iCacheSize=100) | |
~COneClassSVM () | |
int | classify (const CVector< Type > &tPattern) const |
int | classify (Type *ptPattern, Type &rtConfidence) const |
void | classify (Type *ptPattern, Type &rtClass, Type &rtConfidence) const |
void | classify (const CVector< Type > &rtPattern, Type &rtClass, Type &rtConfidence) const |
void | init (const CDataset< Type > &tTrainSet) |
void | train (const CDataset< Type > &tTrainSet) |
CDataset< Type > | getSupportData () |
void | setKernel (CKernel< Type > *ptKernel) |
const CKernel< Type > * | kernel () |
void | setCacheSize (Type tSize) |
void | setRegularization (Type tNu) |
void | setEpsilon (Type tEpsilon) |
Protected Member Functions | |
int | takeStep (int a, int b) |
int | examineExample (int i) |
int | findBestPartner (int iIndex) |
bool | checkKKT (int iIndex) |
Type | calculateOutput (int iIndex) |
Protected Attributes | |
double | tNu |
double | tRho |
double | tKKTEpsilon |
double | tBound |
int | iNumIteration |
CKernel< Type > * | ptKernel |
CKernelCache< Type > * | ptCache |
vector< CSVCandidate< Type > > | tWorkingSet |
OneClass SVM algorithm for estimating the support of a data distribution.
dfdf
COneClassSVM< Type >::COneClassSVM | ( | CKernel< Type > * | ptKernel = new CGaussianKernel< Type >() , |
int | iCacheSize = 100 |
||
) |
COneClassSVM< Type >::~COneClassSVM | ( | ) |
|
protected |
|
protected |
int COneClassSVM< Type >::classify | ( | const CVector< Type > & | tPattern | ) | const |
int COneClassSVM< Type >::classify | ( | Type * | ptPattern, |
Type & | rtConfidence | ||
) | const |
void COneClassSVM< Type >::classify | ( | Type * | ptPattern, |
Type & | rtClass, | ||
Type & | rtConfidence | ||
) | const |
void COneClassSVM< Type >::classify | ( | const CVector< Type > & | rtPattern, |
Type & | rtClass, | ||
Type & | rtConfidence | ||
) | const |
|
protected |
|
protected |
CDataset<Type> COneClassSVM< Type >::getSupportData | ( | ) |
void COneClassSVM< Type >::init | ( | const CDataset< Type > & | tTrainSet | ) |
|
inline |
References COneClassSVM< Type >::ptKernel.
|
inline |
|
inline |
References COneClassSVM< Type >::tKKTEpsilon.
void COneClassSVM< Type >::setKernel | ( | CKernel< Type > * | ptKernel | ) |
|
inline |
References COneClassSVM< Type >::tNu.
|
protected |
void COneClassSVM< Type >::train | ( | const CDataset< Type > & | tTrainSet | ) |
|
protected |
|
protected |
Referenced by COneClassSVM< Type >::setCacheSize().
|
protected |
Referenced by COneClassSVM< Type >::kernel().
|
protected |
|
protected |
Referenced by COneClassSVM< Type >::setEpsilon().
|
protected |
Referenced by COneClassSVM< Type >::setRegularization().
|
protected |
|
protected |