Closed dflemin3 closed 6 years ago
Turns out I did that to ensure that theta_test was allowed by the prior. Now, I just do the following to get the same effect:
# Reject point if prior forbids it
if not np.isfinite(self._lnprior(theta_test.reshape(-1,))):
return -np.inf
Look prior is called twice here:
mu += self._lnprior(theta_test)
in_gpll(self, theta)
andy_t = self._lnlike(theta_t, *args, **kwargs) + self._lnprior(theta_t)
in the run method. Pretty sure the former is overkill, but verify this.