density
Gaussian kernel density estimation over packed batches.
Functions:
-
gaussian_kernel_densityβComputes the Gaussian Kernel Density (KDE) for a given tensor.
gaussian_kernel_density [source] ΒΆ
Computes the Gaussian Kernel Density (KDE) for a given tensor.
Parameters:
-
x(Tensor) βThe input tensor of shape \((N, C)\).
-
batch(Tensor) βThe batch tensor of shape \((N,)\).
-
bandwidth(float) βThe bandwidth of the Gaussian kernel.
Returns:
-
TensorβThe Gaussian Kernel Density of shape \((N,)\).