scikit-learn/scikit-learn

More details about the Crammer-Singer method for LinearSVM

Open

#13556 opened on Apr 2, 2019

View on GitHub
 (4 comments) (2 reactions) (0 assignees)Python (66,084 stars) (27,020 forks)batch import
DocumentationNeeds Benchmarkshelp wantedmodule:svm

Description

Description

On the current page about the LinearSVC model, we are given the option to use either OVR or Crammer-Singer. Though the former is a well-known method, it seems that Crammer-Singer is a very specific algorithm developed for SVMs. The page talks about the nicer theoretical foundations of the method, as well as the longer training time. However, the information about the method is a bit sparse (more about it here, but it says basically the same thing). It would be nice to have:

  • A link to the original paper
  • A general overview of the differences between Crammer-Singer and OVR/OVO
  • A benchmark comparison between the methods above, in terms of computation time and accuracy, on varying dataset sizes
  • An explanation of the important formulas from the paper

Versions

scikit-learn 0.20.3

Contributor guide