mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-11 04:52:37 +02:00
small changes to rbf and rbf_inv
This commit is contained in:
parent
14b8fd0c7d
commit
8131a065cb
3 changed files with 6 additions and 8 deletions
|
|
@ -127,7 +127,7 @@ class GP(GPBase):
|
|||
debug_this # @UndefinedVariable
|
||||
return mu, var
|
||||
|
||||
def predict(self, Xnew, which_parts='all', full_cov=False):
|
||||
def predict(self, Xnew, which_parts='all', full_cov=False, likelihood_args=dict()):
|
||||
"""
|
||||
Predict the function(s) at the new point(s) Xnew.
|
||||
Arguments
|
||||
|
|
@ -152,6 +152,6 @@ class GP(GPBase):
|
|||
mu, var = self._raw_predict(Xnew, full_cov=full_cov, which_parts=which_parts)
|
||||
|
||||
# now push through likelihood
|
||||
mean, var, _025pm, _975pm = self.likelihood.predictive_values(mu, var, full_cov)
|
||||
mean, var, _025pm, _975pm = self.likelihood.predictive_values(mu, var, full_cov, **likelihood_args)
|
||||
|
||||
return mean, var, _025pm, _975pm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue