mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-13 14:03:20 +02:00
BGPLVM example MATLAB compare
This commit is contained in:
parent
02b3f41680
commit
8fb9ab5610
2 changed files with 3 additions and 7 deletions
|
|
@ -192,10 +192,6 @@ def bgplvm_simulation_matlab_compare():
|
||||||
m['noise'] = Y.var() / 100.
|
m['noise'] = Y.var() / 100.
|
||||||
m['linear_variance'] = .01
|
m['linear_variance'] = .01
|
||||||
|
|
||||||
# lscstr = '{}'.format(k.parts[0].name)
|
|
||||||
# m[lscstr] = .01
|
|
||||||
# m.unconstrain(lscstr); m.constrain_fixed(lscstr, 10)
|
|
||||||
|
|
||||||
# lscstr = 'X_variance'
|
# lscstr = 'X_variance'
|
||||||
# m[lscstr] = .01
|
# m[lscstr] = .01
|
||||||
# m.unconstrain(lscstr); m.constrain_fixed(lscstr, .1)
|
# m.unconstrain(lscstr); m.constrain_fixed(lscstr, .1)
|
||||||
|
|
|
||||||
|
|
@ -96,9 +96,9 @@ class Bayesian_GPLVM(sparse_GP, GPLVM):
|
||||||
print "\rWARNING: Caught LinAlgError, continueing without setting "
|
print "\rWARNING: Caught LinAlgError, continueing without setting "
|
||||||
if self._debug:
|
if self._debug:
|
||||||
self._savederrors.append(self.f_call)
|
self._savederrors.append(self.f_call)
|
||||||
# if save_count > 10:
|
if save_count > 10:
|
||||||
# raise
|
raise
|
||||||
# self._set_params(self.oldps[-1], save_old=False, save_count=save_count + 1)
|
self._set_params(self.oldps[-1], save_old=False, save_count=save_count + 1)
|
||||||
|
|
||||||
def dKL_dmuS(self):
|
def dKL_dmuS(self):
|
||||||
dKL_dS = (1. - (1. / (self.X_variance))) * 0.5
|
dKL_dS = (1. - (1. / (self.X_variance))) * 0.5
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue