mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-02 14:45:15 +02:00
array core and bgplvm working > changes due to __i<op>__ will now be reported
This commit is contained in:
parent
4cfc13d5fc
commit
9d262936c6
10 changed files with 177 additions and 54 deletions
|
|
@ -71,17 +71,17 @@ class BayesianGPLVM(SparseGP, GPLVM):
|
|||
|
||||
def parameters_changed(self):
|
||||
super(BayesianGPLVM, self).parameters_changed()
|
||||
#self._log_marginal_likelihood -= self.KL_divergence()
|
||||
self._log_marginal_likelihood -= self.KL_divergence()
|
||||
|
||||
dL_dmu, dL_dS = self.dL_dmuS()
|
||||
|
||||
# dL:
|
||||
self.q.means.gradient = dL_dmu
|
||||
self.q.variances.gradient = dL_dS
|
||||
self.q.mean.gradient = dL_dmu
|
||||
self.q.variance.gradient = dL_dS
|
||||
|
||||
# dKL:
|
||||
#self.q.means.gradient -= self.X
|
||||
#self.q.variances.gradient -= (1. - (1. / (self.X_variance))) * 0.5
|
||||
self.q.mean.gradient -= self.X
|
||||
self.q.variance.gradient -= (1. - (1. / (self.X_variance))) * 0.5
|
||||
|
||||
def plot_latent(self, plot_inducing=True, *args, **kwargs):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ class SparseGPRegression(SparseGP):
|
|||
|
||||
# kern defaults to rbf (plus white for stability)
|
||||
if kernel is None:
|
||||
kernel = kern.rbf(input_dim) + kern.white(input_dim, variance=1e-3)
|
||||
kernel = kern.rbf(input_dim)# + kern.white(input_dim, variance=1e-3)
|
||||
|
||||
# Z defaults to a subset of the data
|
||||
if Z is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue