topipa / iwmm Goto Github PK
View Code? Open in Web Editor NEWiwmm: an R package for adaptive importance sampling
iwmm: an R package for adaptive importance sampling
I think it would be good to have a moment_match.brmsfit
method. It should probably return a modified brmsfit
object with the draws replaced with the moment matched draws, so that further functions from brms would work (e.g. posterior_predict
, see n-kall/priorsense#18). I'm not sure where the weights would be stored though. At some stage I think brms will store the posterior in draws
format (rather than the current stanfit
object), so that would help, but that will likely only happen in the next major release.
Currently loo::psis
is used to calculate the pareto-k diagnostics, but there is work to have a pareto_khat
diagnostic function in posterior. Using this instead would remove the dependency on loo
and allow for loo
to suggest iwmm
(as discussed here).
I can make a branch implementing this change and create a PR once the corresponding functions are merged into posterior
Now that we've changed over to posterior rather than loo for the psis code, we could think about submitting to CRAN so that other packages could use the iwmm functionality. Specifically I'm thinking of priorsense and potentially loo itself. I think that iwmm could be used to fix stan-dev/loo/issues/209
I'm opening this issue mainly to keep track of the tasks we would need to do to get iwmm on CRAN.
There's a PR to change the output of unconstrain_draws
to a draws object (stan-dev/cmdstanr/pull/886) so we can simplify the code below when that gets merged
Lines 601 to 608 in 38bdd3b
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.