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

More options for get_post_parameters #193

Merged
merged 4 commits into from
Nov 26, 2024
Merged

More options for get_post_parameters #193

merged 4 commits into from
Nov 26, 2024

Conversation

zihaoxu98
Copy link
Collaborator

@zihaoxu98 zihaoxu98 commented Nov 19, 2024

This PR adds more options for context.get_post_parameters. The user can get the point estimator from the posterior, by setting which to 'mpe' (max-posterior estimation), 'median' (marginalized medians), 'random' (random sample from walker).

This solves #186

@coveralls
Copy link

coveralls commented Nov 19, 2024

Pull Request Test Coverage Report for Build 12038277764

Details

  • 9 of 13 (69.23%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 85.092%

Changes Missing Coverage Covered Lines Changed/Added Lines %
appletree/context.py 9 13 69.23%
Totals Coverage Status
Change from base Build 12038210039: -0.1%
Covered Lines: 2443
Relevant Lines: 2871

💛 - Coveralls

@zihaoxu98
Copy link
Collaborator Author

zihaoxu98 commented Nov 19, 2024

pre-commit fails due to this PyCQA/docformatter#293 I think we can fix it later

@zihaoxu98 zihaoxu98 requested a review from dachengx November 19, 2024 15:04
"""Get parameters from the backend.

Args:
which: str, 'mpe', 'random' or 'median'.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add comments about what they are.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added

@dachengx dachengx merged commit 5ed0744 into master Nov 26, 2024
7 checks passed
@dachengx dachengx deleted the sample_post branch November 26, 2024 20:31
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