View Single Post
Old 02-22-2013, 09:27 PM
ilya239 ilya239 is offline
Senior Member
Join Date: Jul 2012
Posts: 58
Default Re: Odd results using LibSVM on Prob 8

Originally Posted by View Post
I am using svm command in R using e1071 package. I get good results from it. But I found that for "linear" kernel I need to set the cost (i.e. C) value very high (e.g. 200 to 2000) to get a good fit and low number of support vectors. The problem did not specify we should be using high C for model fitting. Is that a practical observation for a linear kernel?
Maybe C is the parameter for "soft margin" SVMs from next lecture, and setting it high restricts solutions to "hard margin" SVMs used in this problem?
Reply With Quote