Skip to content

Instantly share code, notes, and snippets.

View mizushou's full-sized avatar
:octocat:
Working from home

Shouhei.Mizuno mizushou

:octocat:
Working from home
View GitHub Profile
@mblondel
mblondel / perceptron.py
Last active April 21, 2024 13:42
Kernel Perceptron
# Mathieu Blondel, October 2010
# License: BSD 3 clause
import numpy as np
from numpy import linalg
def linear_kernel(x1, x2):
return np.dot(x1, x2)
def polynomial_kernel(x, y, p=3):