Sounds like there is something wrong with the gradient - try following the steps in How to track a 'nan energy'?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| SamplingError: Bad initial energy | 1 | 2826 | September 10, 2020 | |
| ValueError: Bad initial energy: inf. The model might be misspecified error replicating Multilevel Regression and Poststratification with PyMC3 notebook | 2 | 1640 | May 11, 2018 | |
| Dirichlet Distributions and Batching in pymc3 3.9+ | 2 | 493 | February 1, 2021 | |
| Fixing ValueError: Bad initial energy: inf. The model might be misspecified | 2 | 502 | October 30, 2018 | |
| Bad initial energy after checking test point | 4 | 652 | December 6, 2020 |