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

Change to 50% KDE move, 25% DE move, 25% DESnookermove for more mobile chains #89

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/pySODM/optimization/mcmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
abs_dir = os.path.dirname(__file__)

def run_EnsembleSampler(pos, max_n, identifier, objective_function, objective_function_args=None, objective_function_kwargs=None,
moves=[(emcee.moves.DEMove(), 0.50),(emcee.moves.DESnookerMove(),0.25),(emcee.moves.KDEMove(bw_method='scott'), 0.25)],
moves=[(emcee.moves.DEMove(), 0.25),(emcee.moves.DESnookerMove(),0.25),(emcee.moves.KDEMove(bw_method='scott'), 0.50)],
fig_path=None, samples_path=None, print_n=10, backend=None, processes=1, progress=True, settings_dict={}):
"""Wrapper function to setup an `emcee.EnsembleSampler` and handle all backend-related tasks.

Expand Down Expand Up @@ -42,7 +42,7 @@ def run_EnsembleSampler(pos, max_n, identifier, objective_function, objective_fu
Hyperparameters:
----------------
moves: list
Consult the [emcee documentation](https://emcee.readthedocs.io/en/stable/user/moves/).
Algorithm used for updating the coordinates of walkers in an ensemble sampler. By default, pySODM uses a differential evolution move 25% of the time, a differential evolution snooker move 25% of the time, and a kernel-density estimate move 50% of the time. Consult the [emcee documentation](https://emcee.readthedocs.io/en/stable/user/moves/).
backend: emcee.backends.HDFBackend
Backend of a previous sampling experiment. If a backend is provided, the sampler is restarted from the last iteration of the previous run. Consult the [emcee documentation](https://emcee.readthedocs.io/en/stable/user/backends/).
progress: bool
Expand Down
Loading