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

[WIP] Add a metropolis-hastings based sampling method #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

karuboniru
Copy link
Contributor

@karuboniru karuboniru commented Oct 24, 2023

We can track the status of those modifications here. The change adds a metropolis-hastings-based sampling method for NuWro. Several configurations added are the following:

  • use_mh: bool type
    • 0: traditional rejection method
    • 1: metropolis-hastings-based sampling method
  • mh_sample_interval: int, specify a re-sampling rate
    • Default to 80, quite big but safe
  • use_weighted_channel: enable a weighted channel transition or not in metropolis-hastings-based sampling

Let's discuss details like code quality and documents here to polish this feature!

@karuboniru
Copy link
Contributor Author

karuboniru commented Oct 24, 2023

Since same code finally landed at JUNOSW, that we can track the feature here.

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.

1 participant