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
# This gist solves the hard-margin SVM problem in three ways: using quadprog, using kernlab's ipop, and by | |
# the e1071 wrapper around libsvm. | |
# | |
# author: R. Walker ([email protected]) | |
# LICENSE: MIT | |
library("quadprog") | |
library("kernlab") | |
library("e1071") | |
# Use Fisher iris data and binarize one of the species |