Could you try casting the return value in logp to a numpy scalar: return np.array(-lp)
I think the problem is that it expects a numpy float64, but you return a python float.
1 Like
Could you try casting the return value in logp to a numpy scalar: return np.array(-lp)
I think the problem is that it expects a numpy float64, but you return a python float.