From 9972862ea22164a89e05b1667a45cbadf8d780e9 Mon Sep 17 00:00:00 2001 From: Ricardo Andrade Date: Tue, 29 Jan 2013 12:08:50 +0000 Subject: [PATCH] Test file. --- GPy/examples/ep_fix.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/GPy/examples/ep_fix.py b/GPy/examples/ep_fix.py index 49ebd5aa..1d7b4741 100644 --- a/GPy/examples/ep_fix.py +++ b/GPy/examples/ep_fix.py @@ -26,15 +26,14 @@ likelihood = GPy.inference.likelihoods.probit(data['Y'][:, 0:1]) m = GPy.models.GP(data['X'],likelihood=likelihood) #m = GPy.models.GP(data['X'],likelihood.Y) - m.ensure_default_constraints() + +# Optimize and plot if not isinstance(m.likelihood,GPy.inference.likelihoods.gaussian): m.approximate_likelihood() -print m.checkgrad() -# Optimize and plot -m.optimize() -#m.em(plot_all=False) # EM algorithm -m.plot(samples=3) +#m.optimize() m.EM() +print m.log_likelihood() +m.plot(samples=3) print(m)