Skip to content

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

Open
karuboniru wants to merge 1 commit into
NuWro:masterfrom
karuboniru:mh
Open

[WIP] Add a metropolis-hastings based sampling method#29
karuboniru wants to merge 1 commit into
NuWro:masterfrom
karuboniru:mh

Conversation

@karuboniru

@karuboniru karuboniru commented Oct 24, 2023

Copy link
Copy Markdown
Contributor

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

karuboniru commented Oct 24, 2023

Copy link
Copy Markdown
Contributor Author

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