Stan 2.33: Move IO munging to external package, refactors#681
Stan 2.33: Move IO munging to external package, refactors#681
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #681 +/- ##
===========================================
- Coverage 80.60% 80.01% -0.60%
===========================================
Files 72 72
Lines 11292 10951 -341
===========================================
- Hits 9102 8762 -340
+ Misses 2190 2189 -1 see 40 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
@mitzimorris - I think this is ready to review It is probably hard to review without simultaneously "reviewing" stanio |
mitzimorris
left a comment
There was a problem hiding this comment.
I think that we should go with breaking change w/r/t metatdata visibility.
|
The breaking change is also the different return type of stan_variable for optimize and variational |
|
I took a look at the FBProphet code, and it doesn't use |
|
I don't think arviz touches anything other than CmdStanMCMC |
|
regarding moving stanio under stan-dev - should we create repo stanio with subdirs according to language - |
|
I don't know enough about the R ecosystem to know if they need this - I think rvars/ C++ I think it would be very difficult to write something like this, since the return type of the extracting functions depends on the data |
|
I think it's OK to make this a repo under standev just for the python io used by CmdStanPy and BridgeStan and future Python packages. |
|
Would it make sense to add a This may not be the right thread, but thought I'd mention it in case it affects the data munging. |
|
@tillahoffmann I think that's worth its own issue. It is sort of orthogonal to this issue, since the transformations we apply here are agnostic to what the dtype of the draws are. If we changed what we were reading it from the files, these should propagate nicely |
Effectively reverts the breaking changes in #681 temporarily
Submission Checklist
Summary
IO changes for 2.33 (tuple support).
InferenceMetadatachanged (not technically part of our public API, but it was mentioned some places in our docs).stan_variablefunction now returns the varational draws, not the mean approximation (same as Variational samples #652).stan_variable, never just a Python floatCopyright 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):
Simons Foundation
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: