-
-
Notifications
You must be signed in to change notification settings - Fork 80
Implementation of faster MCMC CSV parsing and Stan CSV utilities #799
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
Merged
Merged
Changes from 15 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
c06ce85
Add StanCsvMCMC dataclass
amas0 c21494d
Filter out empty mass matrix lines
amas0 69ad018
Update _assemble_draws to use StanCsvMCMC object
amas0 2ff7c01
Fix code incompatible with Python 3.8
amas0 9337738
Convert draws parsing to polars
amas0 df1162f
Add docstrings
amas0 75de3b5
Add initial unit tests
amas0 8cb1b7e
Make polars an optional dependency
amas0 9e4340a
Refactor parsing to be function-based
amas0 20fd8a0
Add polars to test dependencies
amas0 a526c08
Add single element csv parsing tests
amas0 d1838f1
Add fixed_param check before assembling draws
amas0 bba3bde
Add numpy/polars equiv testing
amas0 97c9ef8
Convert tests from np.array_equiv to np.array_equal
amas0 8b37adb
Fix csv numpy parsing shape when single row
amas0 196da0c
Disable pylint warning for re-raising
amas0 ada313e
Fixup csv parse typing to 'np.float64'
amas0 15c2711
Fixup typing when converting from 'polars.read_csv'
amas0 20e3649
Update stancsv tests to np.float64
amas0 93bcee7
Use 'without_import' helper in 'test_stancsv'
amas0 d8d38f2
Add more testing for non-'diag_e' metric types
amas0 aa7165c
Clean up mass matrix construction
amas0 29ee368
Allow stancsv parse function to accept filename/path
amas0 810b32a
Add exception handling to stancsv parsing in assemble_draws
amas0 62cfc46
Return 1D array when parsing diagnoal hmc mass matrix
amas0 8a796ba
Change typing from Path -> os.PathLike
amas0 7322abf
Override polars schema inference and set to F64
amas0 c8ab2fb
Raise exception if empty list provided to csv_bytes_list_to_numpy
amas0 4d3cbf7
Remove unused timing line parsing
amas0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.