Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for filtered posteriors #110

Open
simsurace opened this issue May 2, 2023 · 0 comments
Open

API for filtered posteriors #110

simsurace opened this issue May 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@simsurace
Copy link
Member

Since everything in TemporalGPs.jl is build around SSMs, it should be easy to obtain filtered posteriors of various forms, e.g. p(f_t|Y_0,...,Y_t) or p(f_t|Y_0,...,Y_{t-1}) for all t in some range. It seems that e.g. the latter can be done by using some internals like so:

function one_step_ahead_predictions(f, x, y)
    fx = f(x, obs_noise + 1e-6)
    lgssm = build_lgssm(fx)
    F = vcat(x0(lgssm), _filter(lgssm, y)[1:end-1])
    E = emissions(lgssm)
    return predict.(F, E)
end

but

  • not having a complete understanding of the internals, I'm not sure this is correct
  • It would be nice to expose this (or the correct version) as a public API
@simsurace simsurace added the enhancement New feature or request label May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant