Skip to content

Spectral distribution and domain of kernel input #14

@aterenin

Description

@aterenin

I'd like to have a function spectral_distribution which takes a kernel defined over R^d and returns in spectral distribution. For example

function spectral_distribution(k::SqExponentialKernel)
  MvNormal(dim(k), ones(dim(k)))
end

However, there is one big API incompatibility with such a method: currently, there is no way to determine what domain a KernelFunctions.jl kernel is defined over. In particular, there's no way to tell whether a given kernel is defined over R^1 or R^3 or R^100. The underlying issue is that Distances.jl does not distinguish this, and KernelFunctions.jl largely works on top of that API. This is also an issue for #9 and #10.

I suggest instead adding the domain as an explicit parameter to the kernel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions