KSquare Utilities
svm2.h File Reference
#include <string.h>
#include <string>
#include "KKStr.h"
#include "KKMLLTypes.h"
#include "FeatureNumList.h"
#include "FeatureVector.h"

Go to the source code of this file.

Classes

struct  SVM289_MFS::Svm_Model
 
struct  SVM289_MFS::svm_parameter
 
struct  SVM289_MFS::svm_problem
 

Namespaces

 SVM289_MFS
 Namespce used to wrap implementation of libSVM version 2.89.
 

Macros

#define LIBSVM_VERSION   289
 

Typedefs

typedef float SVM289_MFS::Qfloat
 
typedef signed char SVM289_MFS::schar
 
typedef XmlElementTemplate< Svm_Model > SVM289_MFS::XmlElementSvm_Model
 
typedef XmlElementSvm_Model * SVM289_MFS::XmlElementSvm_ModelPtr
 

Enumerations

enum  SVM289_MFS::Kernel_Type {
  SVM289_MFS::Kernel_Type::Kernel_NULL, SVM289_MFS::Kernel_Type::LINEAR, SVM289_MFS::Kernel_Type::POLY, SVM289_MFS::Kernel_Type::RBF,
  SVM289_MFS::Kernel_Type::SIGMOID, SVM289_MFS::Kernel_Type::PRECOMPUTED
}
 
enum  SVM289_MFS::SVM_Type {
  SVM289_MFS::SVM_Type::SVM_NULL, SVM289_MFS::SVM_Type::C_SVC, SVM289_MFS::SVM_Type::NU_SVC, SVM289_MFS::SVM_Type::ONE_CLASS,
  SVM289_MFS::SVM_Type::EPSILON_SVR, SVM289_MFS::SVM_Type::NU_SVR
}
 

Functions

template<class S , class T >
void SVM289_MFS::clone (T *&dst, S *src, kkint32 n)
 
Kernel_Type SVM289_MFS::Kernel_Type_FromStr (KKStr s)
 
KKStr SVM289_MFS::Kernel_Type_ToStr (Kernel_Type kernelType)
 
double SVM289_MFS::powi (double base, kkint32 times)
 
const char * SVM289_MFS::svm_check_parameter (const struct svm_problem *prob, const struct svm_parameter *param)
 
kkint32 SVM289_MFS::svm_check_probability_model (const struct Svm_Model *model)
 
void SVM289_MFS::svm_destroy_model (struct Svm_Model *&model)
 
void SVM289_MFS::svm_destroy_param (struct svm_parameter *&param)
 
void SVM289_MFS::svm_get_labels (const struct Svm_Model *model, kkint32 *label)
 
kkint32 SVM289_MFS::svm_get_nr_class (const struct Svm_Model *model)
 
kkint32 SVM289_MFS::svm_get_svm_type (const struct Svm_Model *model)
 
double SVM289_MFS::svm_get_svr_probability (const struct Svm_Model *model)
 
double SVM289_MFS::svm_predict (const struct Svm_Model *model, const FeatureVector &x)
 
double SVM289_MFS::svm_predict_probability (Svm_Model *model, const FeatureVector &x, double *prob_estimates, kkint32 *votes)
 
void SVM289_MFS::svm_predict_values (const Svm_Model *model, const FeatureVector &x, double *dec_values)
 
Svm_ModelSVM289_MFS::svm_train (const svm_problem &prob, const svm_parameter &param, RunLog &log)
 
SVM_Type SVM289_MFS::SVM_Type_FromStr (KKStr s)
 
KKStr SVM289_MFS::SVM_Type_ToStr (SVM_Type svmType)
 
template<class T >
void SVM289_MFS::swap (T &x, T &y)
 

Variables

kkint32 SVM289_MFS::libsvm_version
 
void(* SVM289_MFS::svm_print_string )(const char *) = &print_string_stdout
 

Macro Definition Documentation

#define LIBSVM_VERSION   289

Definition at line 8 of file svm2.h.