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 ad16bf4 commit ef2519fCopy full SHA for ef2519f
pymc/step_methods/hmc/base_hmc.py
@@ -60,7 +60,7 @@ def __init__(
60
t0=10,
61
adapt_step_size=True,
62
step_rand=None,
63
- **aesara_kwargs
+ **aesara_kwargs,
64
):
65
"""Set up Hamiltonian samplers with common structures.
66
@@ -165,7 +165,7 @@ def astep(self, q0):
165
self.potential.raise_ok(q0.point_map_info)
166
message_energy = (
167
"Bad initial energy, check any log probabilities that "
168
- "are inf or -inf, nan or very small:\n{}".format(error_logp.to_string())
+ f"are inf or -inf, nan or very small:\n{error_logp}"
169
)
170
warning = SamplerWarning(
171
WarningType.BAD_ENERGY,
0 commit comments