an afternoon's work on the laplace approximation

This commit is contained in:
James Hensman 2014-02-05 16:23:35 +00:00
parent 2ff7e286ee
commit f653bc430e
6 changed files with 120 additions and 225 deletions

View file

@ -325,7 +325,6 @@ class Model(Parameterized):
if self._fail_count >= self._allowed_failures:
raise e
self._fail_count += 1
import ipdb;ipdb.set_trace()
obj_grads = np.clip(-self._transform_gradients(self._log_likelihood_gradients() + self._log_prior_gradients()), -1e100, 1e100)
return obj_grads