-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add more transforms for simplex #42
Conversation
Feature/corr cholesky [WIP]
black format all python files
maintenance (#32) more maintenance vectorize misc misc - - make paper for simplex and add randomseed fix indent indent ugh syntax haha syntax again rip scripts for slurm
* syncing stuff * whitespace adjustment * plot file fix * stuff * indent shit * stuff * indent shit * indent * add figure * i hate indents * whitespace * - * more changes * fixmylife * minor things * fix bugs again * add plots * slight changes * -- * add time * replot * plotmylife * Revert "plotmylife" This reverts commit bde7b39.
For large Hypersphere (where Logistic product: |
That's right. Stan uses uniform(-2, 2) inits in the unconstrained space. You can specify that bound. One of the things I've wanted to do is evaluate tail numerical stability. What if we move that to +/- 10 or +/- 100 or even 1000? I shifted Stan's stick breaking prior do that a vector of zeros would initialize to the uniform distribution. Is there a way of doing that for the other parameterizations? When you're talking about coverage, is that for the uniform distribution over simplexes? What about other simple dirichlet like dirichlet(0.1) or dirichlet(10)? I really like the idea of measuring tail coverage like this. It will complement measuring leapfrog steps to bulk of distribution, which is very sampler and implementation-dependent. In retrospect, I really wish we'd just chosen normal(0, 1) initializations in Stan version 1.0---those would line up perfectly with standardized posteriors. Edit: We can emphasize the stability transforms like this in the write-up. It's not even so much about Stan's initialization as having something that's roughly standardized in unconstrained space for a uniform distribution. I don't know how to translate that into unbounded things like covariance matrices. |
50ff505
to
e543e75
Compare
ok even -10,10 fails and only things very close to 0 seem to work. |
yeah HypersphericalLogit.stan does work, i was just trying different inits on the previous one before discarding it. and yeah you were right about large N = 1000, all the other 6 combinations of parametrizations do end up sampling 1000 times without failing |
This adds the following to transforms for simplex, described in #41:
(0, 1)
then to unconstrained via logistic)