We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4716abf commit 6be1647Copy full SHA for 6be1647
pymc/sampling/mcmc.py
@@ -138,11 +138,11 @@ def instantiate_steppers(
138
if unused_args:
139
s = "s" if len(unused_args) > 1 else ""
140
example_arg = sorted(unused_args)[0]
141
- example_step = list(selected_steps.keys())[0]
+ example_step = (list(selected_steps.keys()) or pm.STEP_METHODS)[0]
142
raise ValueError(
143
f"Invalid key{s} found in step_kwargs: {unused_args}. "
144
"Keys must be step names and values valid kwargs for that stepper. "
145
- f'Did you mean {{"{example_step}": {{"{example_arg}": ...}}}}?'
+ f'Did you mean {{"{example_step.name}": {{"{example_arg}": ...}}}}?'
146
)
147
148
if len(steps) == 1:
0 commit comments