sklearn.metrics.pairwise.linear_kernel()

sklearn.metrics.pairwise.linear_kernel

sklearn.metrics.pairwise.linear_kernel(X, Y=None) [source]

Compute the linear kernel between X and Y.

Read more in the User Guide.

Parameters:

X : array of shape (n_samples_1, n_features)

Y : array of shape (n_samples_2, n_features)

Returns:

Gram matrix : array of shape (n_samples_1, n_samples_2)

© 2007–2016 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.metrics.pairwise.linear_kernel.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部