Reputation: 49
I am using sklearn.svm.SVC (kernel='rbf') for the classification of an image data, which is doing pretty well job. Linear SVM classifies the data by putting a hyper plane between the two classes. In the case of rbf SVM the plane would be in infinite dimension. For any testing point we can use predict to check which it belongs to. In linear case we can manually get the prediction by getting the equation of the hyper plane. How can we do this in rbf SVM case. How exactly predict works in rbf SVM case.
Upvotes: 3
Views: 5272
Reputation: 25048
Fisrt things first
Whenever we classify we should consider:
For instance I will put some used Kernels.
For a SVM Classifier with Gaussian Kernel we would have something like:
As you notice support vector is substituted and therefore we could vary it depending on results, for example, consider two features and their colored points:
And setting some values we get:
Now
Or
Now what happens when infinity comes to play:
Then:
And what about adaBoost to play with datasets http://cseweb.ucsd.edu/~yfreund/adaboost/
If you like you could test The NETLAB ML Matlab software by Ian Nabney here
Here are more sources for SVM
Upvotes: 8