Author | Message |
---|---|
kknaur
Posts: 540
|
Posted 14:05 Mar 17, 2012 |
Hello, I have been able to convert the cars.data.arff file to the format needed by the libsvm library. This is where I am stuck however. I have read through the source code, the README file and the python files but I am still not sure how to proceed.
From the REAME file it seems like you first have to create a svm_problem object and an svm_parameter object in order to create the Now when creating the svm_parameter object: We have to test each of the 5 svm types: C_SVC, NU_SVC, ONE_CLASS, EPSILON_SVR, NU_SVR? And for each of those we need to try the 4 kernel types: LINEAR, POLY, RBF, SIGMOID? Once the svm type and kernel type is chosen we have to test those choices with the various options for the variables within each kernel? How do you decide what the best choice for the variables in each kernel are, as there seem to be an infinite number of combinations? The beginners guide suggests for RBF for example to use a grid-search on the possible variable values using cross-validation and various combinations of the possible values are paired up and tested and the pair with the best cross-validation accuracy is the one that is picked.
|
cysun
Posts: 2935
|
Posted 10:37 Mar 18, 2012 |
You don't have to try all possible combinations of svm types, kernel functions, and parameters values - doing something similar to easy.py should be enough. As for how to use libsvm, you are supposed to figure it out yourself. |