mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-08 03:22:38 +02:00
[newest patch updates, cleaned interfaces and mean_function addidtions]
This commit is contained in:
parent
75ccd468ef
commit
71bc90bf98
6 changed files with 28 additions and 18 deletions
|
|
@ -43,12 +43,10 @@ class SparseGP(GP):
|
|||
def __init__(self, X, Y, Z, kernel, likelihood, mean_function=None, X_variance=None, inference_method=None,
|
||||
name='sparse gp', Y_metadata=None, normalizer=False):
|
||||
|
||||
self.missing_data = np.isnan(Y).any()
|
||||
|
||||
#pick a sensible inference method
|
||||
if inference_method is None:
|
||||
if isinstance(likelihood, likelihoods.Gaussian):
|
||||
inference_method = var_dtc.VarDTC(limit=1 if not self.missing_data else Y.shape[1])
|
||||
inference_method = var_dtc.VarDTC(limit=1)
|
||||
else:
|
||||
#inference_method = ??
|
||||
raise NotImplementedError("what to do what to do?")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue