Support Vector machines with custom kernels using scikits.learn
Thursday, May 27th, 2010It is now possible (using the development version as of may 2010) to use Support Vector Machines with custom kernels in scikits.learn.
How to use it couldn’t be more simple: you just pass a callable (the kernel) to the class constructor). For example, a linear kernel would be implemented as follows:
import numpy as np
def my_kernel(x, y):
[…]
Hola. Quieres un yogur?