Skip to content

pymc3.py: explicitly set step method arguments

Matthew Pitkin requested to merge matthew-pitkin/bilby:fix_step_kwargs into master

PyMC3 only applies the step_kwargs and nuts_kwargs arguments to the step methods if they are automatically allocated. Otherwise, it assumes you have already initialised the method with the required keyword arguments. This was not being done in bilby, so this patch fixes it and does explicitly initialise the step methods with values passed to step_kwargs or nuts_kwargs as required.

@rhys.green - check out whether this works for you.

Merge request reports