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

OneClass SVM algorithm for estimating the support of a data distribution. More...

#include <COneClassSVM.h>

Inheritance diagram for COneClassSVM< Type >:

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
 

Detailed Description

template<class Type>
class COneClassSVM< Type >

OneClass SVM algorithm for estimating the support of a data distribution.

dfdf

Author
Thorsten Twellmann (ttwel.nosp@m.lma@.nosp@m.TechF.nosp@m.ak.U.nosp@m.ni-Bi.nosp@m.elef.nosp@m.eld.d.nosp@m.e

Constructor & Destructor Documentation

template<class Type >
COneClassSVM< Type >::COneClassSVM ( CKernel< Type > *  ptKernel = new CGaussianKernel< Type >(),
int  iCacheSize = 100 
)
template<class Type >
COneClassSVM< Type >::~COneClassSVM ( )

Member Function Documentation

template<class Type >
Type COneClassSVM< Type >::calculateOutput ( int  iIndex)
protected
template<class Type >
bool COneClassSVM< Type >::checkKKT ( int  iIndex)
protected
template<class Type >
int COneClassSVM< Type >::classify ( const CVector< Type > &  tPattern) const
template<class Type >
int COneClassSVM< Type >::classify ( Type *  ptPattern,
Type &  rtConfidence 
) const
template<class Type >
void COneClassSVM< Type >::classify ( Type *  ptPattern,
Type &  rtClass,
Type &  rtConfidence 
) const
template<class Type >
void COneClassSVM< Type >::classify ( const CVector< Type > &  rtPattern,
Type &  rtClass,
Type &  rtConfidence 
) const
template<class Type >
int COneClassSVM< Type >::examineExample ( int  i)
protected
template<class Type >
int COneClassSVM< Type >::findBestPartner ( int  iIndex)
protected
template<class Type >
CDataset<Type> COneClassSVM< Type >::getSupportData ( )
template<class Type >
void COneClassSVM< Type >::init ( const CDataset< Type > &  tTrainSet)
template<class Type >
const CKernel<Type>* COneClassSVM< Type >::kernel ( )
inline
template<class Type >
void COneClassSVM< Type >::setCacheSize ( Type  tSize)
inline

Set new cache size (in MByte)

Parameters
tSizeCache size

References COneClassSVM< Type >::ptCache.

template<class Type >
void COneClassSVM< Type >::setEpsilon ( Type  tEpsilon)
inline
template<class Type >
void COneClassSVM< Type >::setKernel ( CKernel< Type > *  ptKernel)
template<class Type >
void COneClassSVM< Type >::setRegularization ( Type  tNu)
inline
template<class Type >
int COneClassSVM< Type >::takeStep ( int  a,
int  b 
)
protected
template<class Type >
void COneClassSVM< Type >::train ( const CDataset< Type > &  tTrainSet)

Member Data Documentation

template<class Type >
int COneClassSVM< Type >::iNumIteration
protected
template<class Type >
CKernelCache<Type>* COneClassSVM< Type >::ptCache
protected
template<class Type >
CKernel<Type>* COneClassSVM< Type >::ptKernel
protected
template<class Type >
double COneClassSVM< Type >::tBound
protected
template<class Type >
double COneClassSVM< Type >::tKKTEpsilon
protected
template<class Type >
double COneClassSVM< Type >::tNu
protected
template<class Type >
double COneClassSVM< Type >::tRho
protected
template<class Type >
vector<CSVCandidate<Type> > COneClassSVM< Type >::tWorkingSet
protected

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