Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to work with machine learning in Mathematica. Are there any SVM algorithms implemented in Mathematica anywhere? Or any other algorithms for machine learning? With positive and negative database of HOG descriptors.

share|improve this question
May you could i) give us a reference ii) give it a shot? – chris Nov 21 '12 at 14:01
There's this 35GBP for students. Haven't used it myself I usually export the data and handle it in matlab since I have the neural networks package for matlab. It makes me cry every time EDIT: Can't find anything about SVM in the Mathematica neural networks package, perhaps it doesn't even have it – ssch Nov 21 '12 at 14:43
What do you mean by "positive and negative database"? – Sjoerd C. de Vries Nov 21 '12 at 14:44

As of Version 10 , Mathematica has a built in function Classify, which implements support vector machines and some other common machine learning algorithms.

trainingset = {1 -> "A", 2 -> "A", 3.5 -> "B", 4 -> "B"};
classifier  = Classify[ trainingset, Method -> "SupportVectorMachine"];
share|improve this answer

The Mathematica Journal has a nice article on SVM's: A Flexible Implementation for Support Vector Machines, with an accompanying notebook and .m file providing an SVM implementation.

share|improve this answer
Calls to the defunct RandomArray can be replaced with identical ones to RandomReal in the example SVM notebook. – image_doctor Nov 21 '12 at 14:59
There's a (newer?) version of the package on google code:… – nikie Nov 21 '12 at 15:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.