LFO-CV-paper | This repository contains all materials for the paper
kandi X-RAY | LFO-CV-paper Summary
kandi X-RAY | LFO-CV-paper Summary
This repository contains all materials for the paper:. Approximate leave-future-out cross-validation for Bayesian time series models by Paul Bürkner, Jonah Gabry and Aki Vehtari. A preprint is available on arXiv at
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of LFO-CV-paper
LFO-CV-paper Key Features
LFO-CV-paper Examples and Code Snippets
Community Discussions
Trending Discussions on LFO-CV-paper
QUESTION
I understand I can calculate the log likelihood of each sample during sampling, e.g.
...ANSWER
Answered 2019-Mar-27 at 23:14Thanks to the link from @dipetkov, I solved this myself. I didn't use the exact methods in the link, but came up with an alternative. You can call stan functions from R to get it to compute log likelihood for your model, even with unseen data (and its very fast!).
First, I put everything in my transformed parameters
block into a function in stan's functions
block. Then, I created a second function that wraps the first function, and evaluates the log likelihood for given observations and provided parameter estimates (I then removed my generated_quantities
block). rstan
has a function expose_stan_functions
which adds all functions in the stan functions
block to the R environment.
You can then call the log likelihood function you made to evaluate your model with any observations (previously seen or unseen), along with a set of parameter estimates.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install LFO-CV-paper
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page