29 #include "CClassifier.h"
108 string className()
const {
return string(
"CSVMLight");};
111 bool isA(
const char* acClass)
const {
if(
string(acClass) ==
"CSVMLight")
return true;
else return CClassifier<Type>::isA(acClass);};
bool m_bLinearCached
Definition: CSVMLight.h:52
bool m_bCalibrated
Definition: CSVMLight.h:51
Type m_tBias
Definition: CSVMLight.h:42
Definition: CSVMModel.h:12
vector< CSVCandidate< Type > > m_tSupportVectors
Definition: CSVMLight.h:41
void solveQP(const CDataset< Type > &rtDs)
Wrapper for SVMLight library written by T. Joachims ....
Definition: CSVMLight.h:39
Type m_tC
Definition: CSVMLight.h:43
int m_iCalibrationFolds
Definition: CSVMLight.h:50
bool isA(const char *acClass) const
Definition: CSVMLight.h:111
void setCostPositiveFactor(Type tCost)
Set cost factor, by which error on postive items outweight errors for negative items.
CDenseVector< Type > m_tWeight
Definition: CSVMLight.h:54
CSVMModel< Type > getModel() const
Get model of trained svm.
CKernel< Type > * m_ptKernel
Definition: CSVMLight.h:53
int m_iCacheSize
Definition: CSVMLight.h:48
string className() const
Definition: CSVMLight.h:108
void setCacheSize(int iSize)
Set size if cache in MByte.
int m_iMaxQPSize
Definition: CSVMLight.h:49
const CKernel< Type > * kernel()
Definition: CSVMLight.h:99
void classify(const CVector< Type > &, Type &, Type &) const
void setMaxQPSize(int iSize)
Set maximal size of quadratic program (>=2)
void setKernel(CKernel< Type > *ptKernel)
Set kernel object.
void setRegularization(Type tC)
Set regularization value.
Base class of object serialization.
Definition: CArchiv.h:19
Base class for kernel functions Base class for kernel function used for example by the support vector...
Definition: CKernel.h:46
Template object for vectors of single and double precision and integer.
Definition: CDenseVector.h:37
void train(const CDataset< Type > &rtDs)
bool calibrate(CDenseVector< double > tIsPositive, CDenseVector< double > tConfidence, Type &tSigmoidA, Type &tSigmoidB)
bool serialize2(CArchiv &)
templatized vector for numerical applications
Definition: CMatrix.h:39
Type m_tSigmoidA
Definition: CSVMLight.h:46
Type m_tPositiveCost
Definition: CSVMLight.h:45
Manages pairs of input and output vectors.
Definition: CDataset.h:110
Type m_tSigmoidB
Definition: CSVMLight.h:47
Type m_tEpsilon
Definition: CSVMLight.h:44
void setMaxTerminationError(Type tError)
Set maximal termination error.
void setCalibratedOutput(bool bSwitch)
Activate output calibration.
void setCalibrationFolds(int iFolds)
Set number of calibration folds.