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

Using multithreading from tutorial doesnt seem to work #519

Closed
MichaelKachanyuk opened this issue Apr 26, 2024 · 0 comments
Closed

Using multithreading from tutorial doesnt seem to work #519

MichaelKachanyuk opened this issue Apr 26, 2024 · 0 comments

Comments

@MichaelKachanyuk
Copy link

General information:

  • emcee version: 3.1.6
  • platform: Windows/VS code/Jupyter Notebook
  • installation method (pip/conda/source/other?): pip install

Problem description:

Expected behavior:

Should run mcmc sampler and make run-time shorter

Actual behavior:

Code cell continues running and does not seem to make sampler run-time any shorter

What have you tried so far?:

changing threads/core/nwalkers

Minimal example:

with Pool() as pool:
sampler2 = mc.EnsembleSampler(nwalkers=10, ndim=4, log_prob_fn=ln_pdf2, args = [], pool = pool)
sampler2.run_mcmc(starts2, 1000, progress = True)

14m 20.3s and counting...

image

import emcee

# sample code goes here...

with Pool() as pool:
    sampler2 = mc.EnsembleSampler(nwalkers=10, ndim=4, log_prob_fn=ln_pdf2, args = [], pool = pool)
    sampler2.run_mcmc(starts2, 1000, progress = True)
@MichaelKachanyuk MichaelKachanyuk closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2024
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

No branches or pull requests

1 participant