KSquare Utilities
SvmWrapper.h File Reference
#include "SVMparam.h"

Go to the source code of this file.

Namespaces

 KKMLL
 Namespace for all K^2 Machine Learning code.
 

Typedefs

typedef std::vector< double > KKMLL::Dvector
 
typedef std::vector< float > KKMLL::Fvector
 
typedef std::vector< kkint32KKMLL::Ivector
 

Enumerations

enum  KKMLL::LearnType {
  KKMLL::LearnType::NORMAL, KKMLL::LearnType::BAGGING, KKMLL::LearnType::BOOSTING, KKMLL::LearnType::SUBSPACE,
  KKMLL::LearnType::SAMPLESV
}
 

Functions

void KKMLL::EncodeProblem (const struct svm_paramater &param, struct svm_problem &prob_in, struct svm_problem &prob_out)
 
void KKMLL::SvmDestroyModel (struct SvmModel233 **subModel)
 
struct SvmModel233 ** KKMLL::SvmLoadModel (istream &f, RunLog &log)
 
void KKMLL::SvmPredictClass (SVMparam &svmParam, struct SvmModel233 **subModel, const struct svm_node *unknownClassFeatureData, kkint32 *votes, double *probabilities, kkint32 knownClass, kkint32 &predClass1, kkint32 &predClass2, kkint32 &predClass1Votes, kkint32 &predClass2Votes, double &predClass1Prob, double &predClass2Prob, double &probOfKnownClass, Ivector &winners, double **crossClassProbTable, double &breakTie)
 
void KKMLL::SvmPredictRaw (SvmModel233 **submodel, const svm_node *unKnownData, double &label, double &dist)
 
kkint32 KKMLL::SvmPredictTwoClass (const struct svm_parameter &param, SvmModel233 **submodel, const svm_node *unKnownData, kkint32 desired, double &dist, double &probability, kkint32 excludeSupportVectorIDX)
 
void KKMLL::SvmSaveModel (ostream &o, struct SvmModel233 **model)
 
struct SvmModel233 ** KKMLL::SvmTrainModel (const struct svm_parameter &param, struct svm_problem &subprob)