Skip to content

Have a logpdf and loglikelihood for NamedTuple of f and y #59

@theogf

Description

@theogf

Right now to compute logpdf or loglikelihood given a pair of GP samples f and observations y one needs to do:

logpdf(likelihood(f), y)

would that make sense to have a small wrapper

function logpdf(like::Likelihood, f_y::NamedTuple)
  logpdf(likelihood(f_y.f), f_y.y)
end

since this is what rand would return for a LatentGP :
https://github.com/JuliaGaussianProcesses/AbstractGPs.jl/blob/e7c67bd24c454f0b8179032ecbb82284887159c0/src/latent_gp.jl#L37

(and similarly for loglikelihood)

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