Sleipnir
Public Member Functions | Static Public Member Functions | Data Fields
SVMLight::CSVMPERF Class Reference

Public Member Functions

 CSVMPERF (int a=3)
void SetLossFunction (size_t loss_f)
void SetTradeoff (double tradeoff)
void SetKernel (int K)
void SetPolyD (int D)
void UseCPSP ()
void SetRBFGamma (double g)
void UseSlackRescaling ()
void UseMarginRescaling ()
void SetPrecisionFraction (double frac)
void ReadModel (char *model_file)
void WriteModel (char *model_file, int simple_model_flag=1)
void WriteWeights (ostream &osm)
void FreeModel ()
void SetVerbosity (size_t V)
vector< ResultClassify (Sleipnir::CPCL &PCL, vector< SVMLabel > SVMLabels)
vector< ResultClassify (Sleipnir::CPCLSet &PCLSet, vector< SVMLabel > SVMLabels)
vector< ResultClassify (Sleipnir::CDat &Dat, vector< SVMLabel > SVMLabels)
void Learn (SAMPLE &sample)
void Classify (Sleipnir::CPCL &PCL, Sleipnir::CDat &Answers, Sleipnir::CDat &Values, Sleipnir::CDat &Counts, const vector< string > &CVGenes)
void ClassifyAll (Sleipnir::CPCL &PCL, Sleipnir::CDat &Values, Sleipnir::CDat &Counts, const vector< string > &CVGenes)
void ClassifyAll (Sleipnir::CPCL &PCL, Sleipnir::CDat &Values, const vector< string > &CVGenes)
bool parms_check ()
bool initialize ()
void Classify (Sleipnir::CDat &Results, vector< SVMLabelPair * > &SVMLabels)
void sigmoid_train (Sleipnir::CDat &Results, vector< SVMLabelPair * > &SVMLabels, float &A, float &B)
void sigmoid_predict (Sleipnir::CDat &Results, vector< SVMLabelPair * > &SVMLabels, float A, float B)
void ReadModelLinear (char *model_file)
STRUCTMODEL read_struct_model_w_linear (char *file, STRUCT_LEARN_PARM *sparm)

Static Public Member Functions

static void FreePattern (pattern x)
static void FreeLabel (label y)
static void FreeSample (sample s)
static void FreeDoc (DOC *pDoc)
static DOC * CreateDoc (Sleipnir::CPCLSet &PCLSet, size_t iGene, size_t iDoc)
static DOC * CreateDoc (Sleipnir::CPCL &PCL, size_t iGene, size_t iDoc)
static DOC * CreateDoc (Sleipnir::CDat &Dat, size_t iGene, size_t iDoc)
static SAMPLE * CreateSample (Sleipnir::CPCLSet &PCLSet, vector< SVMLabel > SVMLabels)
static SAMPLE * CreateSample (Sleipnir::CPCL &PCL, vector< SVMLabel > SVMLabels)
static SAMPLE ** CreateSampleBootStrap (Sleipnir::CPCL &PCL, vector< SVMLabel > &SVMLabels, vector< vector< size_t > > vecvecIndex)
static SAMPLE * CreateSample (Sleipnir::CDat &CDat, vector< SVMLabel > SMVLabels)
static DOC * CreateDoc (Sleipnir::CPCL &PCL, size_t iGene, size_t jGene, size_t iDoc)
static SAMPLE * CreateSample (Sleipnir::CPCL &PCL, Sleipnir::CDat &Answers, const vector< string > &CVGenes)
static bool CreateDoc (vector< string > &vecstrDatasets, vector< SVMLabelPair * > &vecLabels, const vector< string > &LabelsGene, Sleipnir::CDat::ENormalize eNormalize=Sleipnir::CDat::ENormalizeNone)
static SAMPLE * CreateSample (vector< SVMLabelPair * > &SVMLabels)
static void FreeSample_leave_Doc (SAMPLE s)

Data Fields

LEARN_PARM learn_parm
KERNEL_PARM kernel_parm
STRUCT_LEARN_PARM struct_parm
STRUCTMODEL structmodel
int Alg

Detailed Description

Definition at line 148 of file svmperf.h.


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