2016-03-20 39 views
0
aşağıdaki snippet'inde

) kullanırken svmtrain üçüncü parametre açıklayınız:(Matlab

model = svmtrain(train_label, train_set, '-s 0 -t 2'); 

s O -t 2 ne anlama geliyor? LibSVM docs itibaren

cevap

2

:

-s svm_type : set type of SVM (default 0) 
    0 -- C-SVC 
    1 -- nu-SVC 
    2 -- one-class SVM 
    3 -- epsilon-SVR 
    4 -- nu-SVR 
-t 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) 

Yani -s 0 -t 2 Eğer RBF kernel ile C-SVC sınıflandırıcısını eğitmeye çalışıyoruz anlamına gelir.