Skip to content

Define isequal and == more widely between Kernels #492

Open
@mjp98

Description

@mjp98

It would be nice to define isequal and/or == as widely as possible between Kernels and Transforms. At the moment some basic cases seem to be missing, such as

julia> using KernelFunctions

julia> a = 2*WhiteKernel()
White Kernel
        - σ² = 2

julia> b = 2*WhiteKernel()
White Kernel
        - σ² = 2

julia> a == b
false

julia> isequal(a, b)
false

I'm not clear exactly when isequal/== both should be extended (and if hash is also needed), but would be happy to work on an PR that starts to improve this if there's a clear way forward.

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