mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-10 12:32:40 +02:00
Implemented Mapping framework and associated linear and kernel mappings. This is needed for mean functions, back constrained GPLVM and the non-stationary Gibbs kernel.
This commit is contained in:
parent
84b7156d23
commit
d31b5a7c55
12 changed files with 353 additions and 12 deletions
|
|
@ -378,6 +378,21 @@ def stick(kernel=None):
|
|||
|
||||
return m
|
||||
|
||||
def bcgplvm_stick(kernel=None):
|
||||
data = GPy.util.datasets.osu_run1()
|
||||
# optimize
|
||||
m = GPy.models.BCGPLVM(data['Y'], 2, kernel=kernel)
|
||||
m.optimize(messages=1, max_f_eval=10000)
|
||||
if GPy.util.visualize.visual_available:
|
||||
plt.clf
|
||||
ax = m.plot_latent()
|
||||
y = m.likelihood.Y[0, :]
|
||||
data_show = GPy.util.visualize.stick_show(y[None, :], connect=data['connect'])
|
||||
lvm_visualizer = GPy.util.visualize.lvm(m.X[0, :].copy(), m, data_show, ax)
|
||||
raw_input('Press enter to finish')
|
||||
|
||||
return m
|
||||
|
||||
def robot_wireless():
|
||||
data = GPy.util.datasets.robot_wireless()
|
||||
# optimize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue