You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
michaelosthege
changed the title
Not all chains are created equal (with cores=1)
DEMetropolis chains share tuned hyperparameter (with cores=1)
Dec 15, 2019
* add regression test to demo #3731
* return new array and don't touch original in tune method
+ see #3731
* add 'accepted' and 'scaling' to (DE)Metropolis sampler stats
* use existing model.ndim property for code clarity
Observations
When
DEMetropolis
is used withcores > 1 and chains > 1
, all chains are independently tuned.With
cores=1
however, chains share the tunedscaling
parameter and when it's updated during tuning, the adjustments by all chains are superimposed.Cause
For
DEMetropolis
, the steppers are shallow-copied. This shallow-copy somehow keeps their tuned hyperparameter shared.https://github.com/pymc-devs/pymc3/blob/dc9fd7251b34e9851308e91d622513ebe648f49e/pymc3/sampling.py#L933-L939
The text was updated successfully, but these errors were encountered: