Added mlp mapping (with possibility of having multiple layers).

This commit is contained in:
Neil Lawrence 2013-08-29 19:26:00 +02:00
parent e6739788ea
commit 128ebbabc5
12 changed files with 187 additions and 17 deletions

View file

@ -397,7 +397,7 @@ def bcgplvm_linear_stick(kernel=None):
def bcgplvm_stick(kernel=None):
data = GPy.util.datasets.osu_run1()
# optimize
back_kernel=GPy.kern.rbf(data['Y'].shape[1], lengthscale=10.)
back_kernel=GPy.kern.rbf(data['Y'].shape[1], lengthscale=5.)
mapping = GPy.mappings.Kernel(X=data['Y'], output_dim=2, kernel=back_kernel)
m = GPy.models.BCGPLVM(data['Y'], 2, kernel=kernel, mapping=mapping)
m.optimize(messages=1, max_f_eval=10000)