This page

scikits.learn.metrics.pairwise.rbf_kernel

scikits.learn.metrics.pairwise.rbf_kernel(X, Y, sigma=1.0)

Compute the rbf (gaussian) kernel between X and Y.

Parameters :

X: array of shape (n_samples_1, n_features) :

Y: array of shape (n_samples_2, n_features) :

sigma: float :

Returns :

Gram matrix: array of shape (n_samples_1, n_samples_2) :