scikits.learn.metrics.pairwise.polynomial_kernel¶
- scikits.learn.metrics.pairwise.polynomial_kernel(X, Y, degree=3)¶
Compute the polynomial kernel between X and Y.
Parameters : X: array of shape (n_samples_1, n_features) :
Y: array of shape (n_samples_2, n_features) :
degree: int :
Returns : Gram matrix: array of shape (n_samples_1, n_samples_2) :