8

What are the differences between SVC, NuSVC, and LinearSVC?

Please shed some light.

Ethan
  • 1,657
  • 9
  • 25
  • 39
Taylor
  • 103
  • 1
  • 2
  • 5

1 Answers1

7

In 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.

sfmiller940
  • 196
  • 2