Created
June 2, 2015 13:59
-
-
Save cesarsouza/f09198c8ebc29b5d648a to your computer and use it in GitHub Desktop.
Simpler Accord.NET SVM creation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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