pymc.gp.cov.Cosine#
- class pymc.gp.cov.Cosine(input_dim, ls=None, ls_inv=None, active_dims=None)[source]#
The Cosine kernel.
\[k(x, x') = \mathrm{cos}\left( 2 \pi \frac{||x - x'||}{ \ell^2} \right)\]Methods
Cosine.__init__(input_dim[, ls, ls_inv, ...])Cosine.diag(X)Cosine.euclidean_dist(X, Xs)Cosine.full(X[, Xs])Cosine.full_from_distance(dist[, squared])Cosine.square_dist(X, Xs)Attributes
n_dimsThe dimensionality of the input, as taken from the active_dims.