mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-24 14:15:14 +02:00
Test file.
This commit is contained in:
parent
691aeeaf22
commit
9972862ea2
1 changed files with 5 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue