What are the differences between SVC, NuSVC, and LinearSVC?
Please shed some light.
Data Science Stack Exchange is a question and answer site for Data science professionals, Machine Learning specialists, and those interested in learning more about the field. It only takes a minute to sign up.
Sign up to join this communityIn scikit SVC and nuSVC are mathematically equivalent with both methods based on the library libsvm. The main difference is that SVC uses the parameter C
while nuSVC uses the parameter nu
.
LinearSVC is based on the library liblinear. As the documentation says, LinearSVC is similar to SVC with parameter kernel='linear'
, but liblinear offers more penalties and loss functions in order to scale better with large numbers of samples. Please check out this question and this question for more details.
NuSVC
and ```SVC`` on same data`?
$\endgroup$
v
parameter serves as both "to upper bound the fraction of margin errors and a lower bound of the fraction of support vectors." I interpret it as e.g. at most 2% margin error allowed, and at least 2% examples to use as support vectors.
$\endgroup$