Skip to content

Instantly share code, notes, and snippets.

@KrishnaAnanthi
KrishnaAnanthi / svm.py
Created February 3, 2014 09:43 — forked from mblondel/svm.py
# 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)