mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-01 15:52:39 +02:00
kernel tests in working order (not all implemented though
This commit is contained in:
parent
76bb673326
commit
17f9764a55
4 changed files with 203 additions and 86 deletions
|
|
@ -52,10 +52,7 @@ class SparseGP(GP):
|
|||
self.parameters_changed()
|
||||
|
||||
def has_uncertain_inputs(self):
|
||||
if isinstance(self.X, VariationalPosterior):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
return isinstance(self.X, VariationalPosterior)
|
||||
|
||||
def parameters_changed(self):
|
||||
self.posterior, self._log_marginal_likelihood, self.grad_dict = self.inference_method.inference(self.kern, self.X, self.Z, self.likelihood, self.Y)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue