some updates for params changes and likelihood fixes

This commit is contained in:
Max Zwiessele 2014-02-14 15:05:38 +00:00
parent 6419401d60
commit 345e5b3e7c
3 changed files with 22 additions and 4 deletions

View file

@ -216,6 +216,8 @@ class Laplace(object):
"""
if not log_concave:
#print "Under 1e-10: {}".format(np.sum(W < 1e-6))
# W[W<1e-6] = 1e-6
# NOTE: when setting a parameter inside parameters_changed it will allways come to closed update circles!!!
W.__setitem__(W < 1e-6, 1e-6, update=False) # FIXME-HACK: This is a hack since GPy can't handle negative variances which can occur
# If the likelihood is non-log-concave. We wan't to say that there is a negative variance
# To cause the posterior to become less certain than the prior and likelihood,