libsvm参数说明
英文释义
- svm_type : set type of SVM (default 0)
0 -- C-SVC
1 -- nu-SVC
2 -- one-class SVM
3 -- epsilon-SVR
4 -- nu-SVR
- kernel_type : set type of kernel function (default 2)
0 -- linear: u'*v
1 -- polynomial: (gamma*u'*v + coef0)^degree
2 -- radial basis function: exp(-gamma*|u-v|^2)
3 -- sigmoid: tanh(gamma*u'*v + coef0)
4 -- precomputed kernel (kernel values in training_instance_matrix)
- degree : set degree in kernel function (default 3)
- gamma : set gamma in kernel function (default 1/k)
- coef0 : set coef0 in kernel function (default 0)
- cost : set the parameter C of C-SVC, epsilon-SVR, and nu-SVR (default 1)
- nu : set the parameter nu of nu-SVC, one-class SVM, and nu-SVR (default 0.5)
- epsilon : set the epsilon in loss function of epsilon-SVR (default 0.1)
- cachesize : set cache memory size in MB (default 100)
- epsilon : set tolerance of termination criterion (default 0.001)
中文释义
- svm类型:SVM设置类型(默认0)
0 -- C-SVC
1 --v-SVC
2 – 一类SVM
3 -- e -SVR
4 -- v-SVR
- 核函数类型:核函数设置类型(默认2)
0 -- 线性:u'v
1 -- 多项式:(r*u'v + coef0)^degree
2 -- RBF函数:exp(-r|u-v|^2)
3 --sigmoid:tanh(r*u'v + coef0)
- degree:核函数中的degree设置(针对多项式核函数)(默认3)
- gama:核函数中的gamma函数设置(针对多项式/rbf/sigmoid核函数)(默认1/ k)
- coef0:核函数中的coef0设置(针对多项式/sigmoid核函数)((默认0)
- cost:设置C-SVC,e -SVR和v-SVR的参数(损失函数)(默认1)
- nu:设置v-SVC,一类SVM和v- SVR的参数(默认0.5)
- epsilon:设置e -SVR 中损失函数p的值(默认0.1)
- cachesize:设置cache内存大小,以MB为单位(默认40)
- epsilon:设置允许的终止判据(默认0.001)
以上这些参数设置可以按照SVM的类型和核函数所支持的参数进行任意组合,如果设置的参数在函数或SVM类型中没有也不会产生影响,程序不会接受该参数;如果应有的参数设置不正确,参数将采用默认值。
关于参数详细用法请参见libsvm技术手册pdf