mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-08 03:22:38 +02:00
[pred_var] added predictive variable as property now
This commit is contained in:
parent
9ddbaa9a7c
commit
19906edf7d
4 changed files with 6 additions and 5 deletions
|
|
@ -59,8 +59,10 @@ class SparseGP(GP):
|
|||
logger.info("Adding Z as parameter")
|
||||
self.link_parameter(self.Z, index=0)
|
||||
self.posterior = None
|
||||
self._predictive_variable = self.Z
|
||||
|
||||
@property
|
||||
def _predictive_variable(self):
|
||||
return self.Z
|
||||
|
||||
def has_uncertain_inputs(self):
|
||||
return isinstance(self.X, VariationalPosterior)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue