From f8c3cd669da9a7fe127245b4e606296192c208b0 Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Wed, 24 Apr 2013 11:17:13 +0100 Subject: [PATCH] rewritten dim_reduction demo to match new style of getters and setters --- GPy/examples/dimensionality_reduction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/examples/dimensionality_reduction.py b/GPy/examples/dimensionality_reduction.py index e5f50237..be60b5f4 100644 --- a/GPy/examples/dimensionality_reduction.py +++ b/GPy/examples/dimensionality_reduction.py @@ -207,7 +207,7 @@ def bgplvm_simulation(burnin='scg', plot_sim=False, # cstr = 'X_variance' # m.unconstrain(cstr), m.constrain_bounded(cstr, 1e-3, 1.) - m.set('X_var', np.ones(N * Q) * .5 + np.random.randn(N * Q) * .01) + m['X_var'] = np.ones(N * Q) * .5 + np.random.randn(N * Q) * .01 # cstr = "iip" # m.unconstrain(cstr); m.constrain_fixed(cstr)