KSquare Utilities
svm.h File Reference
#include <iostream>
#include <set>
#include <vector>
#include "KKException.h"
#include "KKStr.h"
#include "RunLog.h"
#include "XmlStream.h"

Go to the source code of this file.

Classes

struct  SVM233::svm_node
 
struct  SVM233::svm_parameter
 
struct  SVM233::svm_problem
 
struct  SVM233::SvmModel233
 

Namespaces

 SVM233
 This is version 2.33 of "Chih-Chung Chang" and "Chih-Jen Lin" Support vector Machine; the class "ModelOldSVM" calls ths version.
 

Typedefs

typedef XmlElementTemplate< SvmModel233 > SVM233::XmlElementSvmModel233
 
typedef XmlElementSvmModel233 * SVM233::XmlElementSvmModel233Ptr
 

Enumerations

enum  {
  SVM233::C_SVC, SVM233::NU_SVC, SVM233::ONE_CLASS, SVM233::EPSILON_SVR,
  SVM233::NU_SVR
}
 
enum  { SVM233::LINEAR, SVM233::POLY, SVM233::RBF, SVM233::SIGMOID }
 

Functions

svm_problemSVM233::svm_BuildProbFromTwoClassModel (const SvmModel233 *model, kkint32 excludeSupportVectorIDX)
 
const char * SVM233::svm_check_parameter (const struct svm_problem *prob, const struct svm_parameter *param)
 
void SVM233::svm_destroy_model (struct SvmModel233 *model)
 
void SVM233::svm_get_labels (const struct SvmModel233 *model, kkint32 *label)
 
kkint32 SVM233::svm_get_nr_class (const struct SvmModel233 *model)
 
void SVM233::svm_GetSupportVectorStatistics (const struct SvmModel233 *model, kkint32 &numSVs, kkint32 &totalNumSVs)
 Extract Support Vector statistics . More...
 
struct SvmModel233 * SVM233::Svm_Load_Model (std::istream &f, RunLog &log)
 
void SVM233::svm_margin (SvmModel233 *model)
 
double SVM233::svm_predict (const struct SvmModel233 *model, const struct svm_node *x)
 
double SVM233::svm_predict (const struct SvmModel233 *model, const svm_node *x, std::vector< double > &dist, std::vector< kkint32 > &winners, kkint32 excludeSupportVectorIDX)
 Predicts a class for the specified training example. More...
 
double SVM233::svm_predictTwoClasses (const SvmModel233 *model, const svm_node *x, double &dist, kkint32 excludeSupportVectorIDX)
 
void SVM233::Svm_Save_Model (std::ostream &o, const SvmModel233 *model)
 
struct SvmModel233 * SVM233::svm_train (const struct svm_problem *prob, const struct svm_parameter *param)
 

Variables

const kkint32 SVM233::SCALE = 100