Skip to content

Instantly share code, notes, and snippets.

View gilcu2's full-sized avatar

Reynaldo Gil García gilcu2

  • Enfore
  • Langen(Hessen)
View GitHub Profile
@gilcu2
gilcu2 / svm.py
Created March 14, 2017 06:15 — forked from mblondel/svm.py
Support Vector Machines
# Mathieu Blondel, September 2010
# License: BSD 3 clause
import numpy as np
from numpy import linalg
import cvxopt
import cvxopt.solvers
def linear_kernel(x1, x2):
return np.dot(x1, x2)