17 #ifndef mitkLibSVMClassifier_h
18 #define mitkLibSVMClassifier_h
39 itkFactorylessNewMacro(
Self)
45 void Train(
const Eigen::MatrixXd &X,
const Eigen::MatrixXi &Y)
override;
46 Eigen::MatrixXi Predict(
const Eigen::MatrixXd &X)
override;
51 void PrintParameter(std::ostream & str);
52 void ConvertParameter();
54 void SetSvmType(
int val);
55 void SetProbability(
int val);
56 void SetShrinking(
int val);
57 void SetNrWeight(
int val);
58 void SetNu(
double val);
59 void SetP(
double val);
60 void SetEps(
double val);
61 void SetC(
double val);
62 void SetCacheSize(
double val);
63 void SetKernelType(
int val);
64 void SetDegree(
int val);
65 void SetGamma(
double val);
66 void SetCoef0(
double val);
70 void ReadXValues(LibSVM::svm_problem * problem, LibSVM::svm_node** xSpace,
const Eigen::MatrixXd &X);
71 void ReadYValues(LibSVM::svm_problem * problem,
const Eigen::MatrixXi &Y);
72 void ReadWValues(LibSVM::svm_problem * problem);
74 LibSVM::svm_model* m_Model;
75 LibSVM::svm_parameter * m_Parameter;
80 #endif //mitkLibSVMClassifier_h
Base of all data objects.
DataCollection - Class to facilitate loading/accessing structured data.
bool SupportsPointWiseWeight()
SupportsPointWiseWeight.
#define MITKCLLIBSVM_EXPORT
#define mitkClassMacro(className, SuperClassName)
bool SupportsPointWiseProbability()
SupportsPointWiseProbability.