Skip to content

Commit 38d21c8

Browse files
committed
- Change the second check_start_vals to explicitly run on the newly assigned start variable.
1 parent e774942 commit 38d21c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc3/sampling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,8 @@ def sample(
491491
**kwargs,
492492
)
493493
if start is None:
494-
check_start_vals(start_, model)
495494
start = start_
495+
check_start_vals(start, model)
496496
except (AttributeError, NotImplementedError, tg.NullTypeGradError):
497497
# gradient computation failed
498498
_log.info("Initializing NUTS failed. " "Falling back to elementwise auto-assignment.")

0 commit comments

Comments
 (0)