JuliaGaussianProcesses / AbstractGPs.jl

Abstract types and methods for Gaussian Processes.
https://juliagaussianprocesses.github.io/AbstractGPs.jl/dev
Other
210 stars 20 forks source link

Stabilize `MeanFunction` API #356

Closed simsurace closed 1 year ago

simsurace commented 1 year ago

It would be nice to have an official API for mean functions. It could be minimalistic for now, but e.g. guarantee that MeanFunction is exported and maybe have a public method meanvector similar to kernelmatrix, that serves as a user-facing version of _map_meanfunction. @theogf

Right now implementing non-standard mean functions requires relying on internals.

willtebbutt commented 1 year ago

I would be entirely happy to rename _map_meanfunction to meanvector, and to expose it as part of the user-facing API.

A PR which did this, and documented it, would be welcome as far as I'm concerned.

theogf commented 1 year ago

Solved in #357