$unconstrain_draws() returns draws format#886
Conversation
|
This would technically be a breaking change, since it changes the default return from a list of lists (list per chain) to a single @avehtari would you be able to try out this branch and check that it works for your use-cases? @n-kall priorsense is the main user of |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #886 +/- ##
==========================================
- Coverage 88.35% 86.73% -1.63%
==========================================
Files 12 12
Lines 4527 4530 +3
==========================================
- Hits 4000 3929 -71
- Misses 527 601 +74 ☔ View full report in Codecov by Sentry. |
|
Thanks!
Yeah I think this is worth it. |
|
Sorry for the delay, just got some time to try this out. Looks great! It should make it easier to unconstrain -> transform -> constrain for moment matching. Thanks @andrjohns ! |
|
I can confirm that the following works now Note that I had to again use |
|
@andrjohns Do you think it would make sense to also have a One other thing: the default draws format is currently draws_df, but I think draws_array is usually the default format. e.g. in |
Great, thanks @avehtari! The pathfinder issue was just because this branch hadn't had the new changes to master merged in yet, so the fix wasn't present.
Good call, thanks @n-kall! I've updated the draws format to match, and I'll get started on a complementary |
Submission Checklist
Summary
Adds a
formatargument to theunconstrain_draws()method to return the draws in adrawsformatCopyright and Licensing
Please list the copyright holder for the work you are submitting
(this will be you or your assignee, such as a university or company):
Andrew Johnson
By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses: