Skip to content

Fix number of tune steps with cores>1 #3821

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

Merged
merged 3 commits into from
Mar 1, 2020

Conversation

michaelosthege
Copy link
Member

@michaelosthege michaelosthege commented Mar 1, 2020

The main iterator in multiprocess sampling took draws before checking the draw == self._tune condition. As a result, sample(cores>1) always took one tune draw more than it should have.

@codecov
Copy link

codecov bot commented Mar 1, 2020

Codecov Report

Merging #3821 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3821      +/-   ##
==========================================
- Coverage   90.78%   90.77%   -0.02%     
==========================================
  Files         133      133              
  Lines       20560    20566       +6     
==========================================
+ Hits        18665    18668       +3     
- Misses       1895     1898       +3     
Impacted Files Coverage Δ
pymc3/parallel_sampling.py 85.76% <0.00%> (-1.10%) ⬇️

@michaelosthege michaelosthege changed the title [WIP] Fix tune sampler stat with cores>1 Fix number of tune steps with cores>1 Mar 1, 2020
@twiecki twiecki merged commit fb156af into pymc-devs:master Mar 1, 2020
@twiecki
Copy link
Member

twiecki commented Mar 1, 2020

👍

@michaelosthege michaelosthege deleted the fix-3819 branch March 1, 2020 12:56
sthagen added a commit to sthagen/pymc-devs-pymc that referenced this pull request Mar 3, 2020
Fix number of tune steps with cores>1 (pymc-devs#3821)
michaelosthege added a commit to michaelosthege/pymc that referenced this pull request Feb 25, 2023
Removes a regression test added in pymc-devs#3821 because it took 14 seconds.
michaelosthege added a commit that referenced this pull request Feb 26, 2023
* Extract return part of `pm.sample`

* Speed up `test_mcmc`

* Group tests related to `pm.sample` return parameters

* Consolidate tests of return options

Removes a regression test added in #3821 because it took 14 seconds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants