Skip to content
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

Bugfix/3301 stan csv reader #3311

Merged
merged 9 commits into from
Oct 3, 2024
Merged

Conversation

mitzimorris
Copy link
Member

Submission Checklist

  • Run unit tests: ./runTests.py src/test/unit
  • Run cpplint: make cpplint
  • Declare copyright holder and open-source license: see below

Summary

Better parsing of Stan CSV files to allow for getting MCMC sample from fixed_param and samples with saved warmup draws (bug #3301) and be able to correctly get ADVI sample.

Intended Effect

Always provide valid sample from parsed stan_csv object.

How to Verify

Unit tests

Side Effects

Methods to parse segments of the Stan CSV file - header, etc. no longer take argument out to record warnings and instead throw std::invalid_input errors.

Documentation

N/A

Copyright 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):

Columbia University

By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

@mitzimorris
Copy link
Member Author

ready for review.
this will cause CmdStan's bin/stansummary to fail.

Copy link
Member

@WardBrian WardBrian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me!

How do you want to handle the cmdstan failure? It seems like it would be annoying if that CI fails until the new R-Hat etc make it all the way in

@mitzimorris
Copy link
Member Author

have branch of CmdStan queued up here: https://github.com/stan-dev/cmdstan/tree/update/3301-stan-csv-reader
can submit PR on CmdStan

@mitzimorris mitzimorris merged commit 51dbaa4 into develop Oct 3, 2024
2 of 3 checks passed
@WardBrian WardBrian deleted the bugfix/3301-stan-csv-reader branch October 3, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants