Kohcomputation
KOHKernelComputation
Bases: AbstractKernelComputation
Dense kernel computation class. Operations with the kernel assume a dense gram matrix structure.
cross_covariance(kernel, x, y)
Compute the cross-covariance matrix.
For a given kernel, compute the NxM covariance matrix on a pair of input
matrices of shape $NxD$ and $MxD$.
Parameters:
-
kernel(Kernel) –the kernel function.
-
x(Float[Array, 'N D']) –The input matrix.
-
y(Float[Array, 'M D']) –The input matrix.
Returns
Float[Array, "N M"]: The computed cross-covariance.