From 3eef067e41d03bf4f193c24feede0b4ca81c4d6e Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Wed, 6 Nov 2024 20:03:03 +0000 Subject: [PATCH] Update src/mcmc/hmc.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/mcmc/hmc.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mcmc/hmc.jl b/src/mcmc/hmc.jl index d8c37115c..5887feb5e 100644 --- a/src/mcmc/hmc.jl +++ b/src/mcmc/hmc.jl @@ -182,7 +182,9 @@ function DynamicPPL.initialstep( @warn "failed to find valid initial parameters in $(init_attempt_count) tries; consider providing explicit initial parameters using the `initial_params` keyword" end if init_attempt_count == 1000 - error("failed to find valid initial parameters in $(init_attempt_count) tries. This may indicate an error with the model or AD backend; please open an issue at https://github.com/TuringLang/Turing.jl/issues") + error( + "failed to find valid initial parameters in $(init_attempt_count) tries. This may indicate an error with the model or AD backend; please open an issue at https://github.com/TuringLang/Turing.jl/issues", + ) end # NOTE: This will sample in the unconstrained space.