Machine Learning Library
|
Wrapper for SVMLight library written by T. Joachims .... More...
#include <CSVMLight.h>
Public Member Functions | |
CSVMLight () | |
Constructor. More... | |
~CSVMLight () | |
Destructor. More... | |
void | train (const CDataset< Type > &rtDs) |
void | classify (const CVector< Type > &, Type &, Type &) const |
void | setKernel (CKernel< Type > *ptKernel) |
Set kernel object. More... | |
void | setCacheSize (int iSize) |
Set size if cache in MByte. More... | |
void | setMaxQPSize (int iSize) |
Set maximal size of quadratic program (>=2) More... | |
void | setRegularization (Type tC) |
Set regularization value. More... | |
void | setCalibrationFolds (int iFolds) |
Set number of calibration folds. More... | |
void | setMaxTerminationError (Type tError) |
Set maximal termination error. More... | |
void | setCostPositiveFactor (Type tCost) |
Set cost factor, by which error on postive items outweight errors for negative items. More... | |
CSVMModel< Type > | getModel () const |
Get model of trained svm. More... | |
void | setCalibratedOutput (bool bSwitch) |
Activate output calibration. More... | |
const CKernel< Type > * | kernel () |
bool | serialize2 (CArchiv &) |
int | classify (const CVector< Type > &) const |
string | className () const |
bool | isA (const char *acClass) const |
Protected Member Functions | |
void | solveQP (const CDataset< Type > &rtDs) |
bool | calibrate (CDenseVector< double > tIsPositive, CDenseVector< double > tConfidence, Type &tSigmoidA, Type &tSigmoidB) |
Protected Attributes | |
vector< CSVCandidate< Type > > | m_tSupportVectors |
Type | m_tBias |
Type | m_tC |
Type | m_tEpsilon |
Type | m_tPositiveCost |
Type | m_tSigmoidA |
Type | m_tSigmoidB |
int | m_iCacheSize |
int | m_iMaxQPSize |
int | m_iCalibrationFolds |
bool | m_bCalibrated |
bool | m_bLinearCached |
CKernel< Type > * | m_ptKernel |
CDenseVector< Type > | m_tWeight |
Wrapper for SVMLight library written by T. Joachims ....
|
protected |
void CSVMLight< Type >::classify | ( | const CVector< Type > & | , |
Type & | , | ||
Type & | |||
) | const |
|
inline |
Get model of trained svm.
|
inline |
References CSVMLight< Type >::m_ptKernel.
void CSVMLight< Type >::setCacheSize | ( | int | iSize | ) |
Set size if cache in MByte.
void CSVMLight< Type >::setCalibratedOutput | ( | bool | bSwitch | ) |
Activate output calibration.
void CSVMLight< Type >::setCalibrationFolds | ( | int | iFolds | ) |
Set number of calibration folds.
void CSVMLight< Type >::setCostPositiveFactor | ( | Type | tCost | ) |
Set cost factor, by which error on postive items outweight errors for negative items.
Set kernel object.
void CSVMLight< Type >::setMaxQPSize | ( | int | iSize | ) |
Set maximal size of quadratic program (>=2)
void CSVMLight< Type >::setMaxTerminationError | ( | Type | tError | ) |
Set maximal termination error.
void CSVMLight< Type >::setRegularization | ( | Type | tC | ) |
Set regularization value.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by CSVMLight< Type >::kernel().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |