Skip to content

Instantly share code, notes, and snippets.

@cesarsouza
Created June 2, 2015 13:59
Show Gist options
  • Save cesarsouza/f09198c8ebc29b5d648a to your computer and use it in GitHub Desktop.
Save cesarsouza/f09198c8ebc29b5d648a to your computer and use it in GitHub Desktop.
Simpler Accord.NET SVM creation
// Creating the model
let kernel = Linear()
let svm = new MulticlassSupportVectorMachine(features, kernel, classes)
// Creating the teacher
let learner = MulticlassSupportVectorLearning(svm, observations, labels)
learner.Algorithm <- fun svm x y _ _ ->
SequentialMinimalOptimization(svm, x, y)
:> ISupportVectorMachineLearning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment