Hi,
-
Bad initial energyassociated withMean of empty sliceusually signals missing values somewhere. You mentionned some tests do have missing values, and indeed the error message mentionsnH, so I’d bet there areNaNs innH_obs. PyMC3 handles and infers them automatically, but you have to wrap them into a numpy masked array – see this NB,Code 14.7, for an example. -
For more details on this common error message, you can take a look at the FAQ.
-
Finally, I think I’d use more informative priors – Uniforms are usually not a good choice.
Hope this helps 