-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
OnlineStats for Bayesian modeling? #158
Comments
I haven't done anything MCMC in a while, but I think OnlineStats has all the pieces you need (means, variances, and autocorrelations). The implementations of |
@cscherrer if you're thinking of making a BayesianOnlineStats package I'd be happy to contribute. It'll be a good excuse to spend more time thinking about how to work with streaming samples and to learn OnlineStats. I think |
Nice! I haven't thought about this much in a few months, but I do think it's important. Currently the best I have is using Transducers: There are really two independent concern here -- QMC and stream combinators -- but this made a nice sandbox for trying out some ideas. I think my mental model of the current Julia approach was a bit off. Haskell has a nice "stream fusion" approach that lets you apply a sequence of transformations to a stream without a performance penalty. Transducers is a bit like this turned on its head - there, the transformations compose nicely, as long as you don't actually apply them at each step. |
Hi Josh,
I've been moving toward MCMC results being in the form of an iterator instead of an array, and encouraging others in this direction as well. This convenience and flexibility in a lot of different ways.
There seems to be some interest in this approach from the Turing team:
TuringLang/AdvancedHMC.jl#101 (comment)
And Tamas Papp is also trying this out for DynamicHMC:
tpapp/DynamicHMC.jl#94
Have you done or seen anything in this direction for OnlineStats?
The general idea is to specify a stopping criterion, say a standard error on the mean estimate of some function of the posterior sample. I think it will also be nice to have a way to deal with intermediate results.
A few things are needed for this approach, most already available:
Any thoughts on this?
The text was updated successfully, but these errors were encountered: