Skip to content

Instantly share code, notes, and snippets.

View MauroCE's full-sized avatar
:octocat:

Mauro Camara Escudero MauroCE

:octocat:
View GitHub Profile
@rwalk
rwalk / svm_solver_compare.R
Last active January 27, 2020 16:41
R: Solve the SVM minimization problem with quadprog and ipop
# 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 (r_walker@zoho.com)
# LICENSE: MIT
library("quadprog")
library("kernlab")
library("e1071")
# Use Fisher iris data and binarize one of the species