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

add get_param_array function #235

Conversation

SamuelBrand1
Copy link
Collaborator

This PR adds a function to EpiAwareUtils which maps a MCMCChains.Chains type object with n samples per m chains (i.e. n * m samples) to a (n, m) sized array of NamedTuples representation of each sample.

Closes #234 .

@SamuelBrand1
Copy link
Collaborator Author

I've changed this following this suggestion TuringLang/MCMCChains.jl#456 (comment)

Its a really simple utility now.

Copy link
Collaborator

@seabbs seabbs left a comment

Choose a reason for hiding this comment

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

Really nice.

@seabbs seabbs enabled auto-merge (squash) May 22, 2024 15:26
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.76%. Comparing base (2d3b4c8) to head (79e4f83).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #235      +/-   ##
==========================================
+ Coverage   92.73%   92.76%   +0.03%     
==========================================
  Files          42       43       +1     
  Lines         399      401       +2     
==========================================
+ Hits          370      372       +2     
  Misses         29       29              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@seabbs seabbs merged commit 919b8a8 into main May 22, 2024
10 checks passed
@seabbs seabbs deleted the 234-utility-for-translating-a-mcmcchainschain-object-into-a-vector-of-namedtuples branch May 22, 2024 15:47
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.

Utility for translating a MCMCChains.Chain object into a vector of NamedTuples
3 participants