mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-30 14:35:15 +02:00
Merge branch 'linK_functions2' into devel
Conflicts: GPy/core/gp.py GPy/core/gp_base.py GPy/core/sparse_gp.py GPy/examples/regression.py GPy/kern/constructors.py GPy/kern/parts/coregionalise.py GPy/models/__init__.py GPy/models/sparse_gp_classification.py GPy/util/__init__.py
This commit is contained in:
commit
f8c9e6b982
36 changed files with 2144 additions and 404 deletions
|
|
@ -28,11 +28,11 @@ class SparseGPClassification(SparseGP):
|
|||
|
||||
def __init__(self, X, Y=None, likelihood=None, kernel=None, normalize_X=False, normalize_Y=False, Z=None, num_inducing=10):
|
||||
if kernel is None:
|
||||
kernel = kern.rbf(X.shape[1]) + kern.white(X.shape[1], 1e-3)
|
||||
kernel = kern.rbf(X.shape[1])# + kern.white(X.shape[1],1e-3)
|
||||
|
||||
if likelihood is None:
|
||||
distribution = likelihoods.likelihood_functions.Binomial()
|
||||
likelihood = likelihoods.EP(Y, distribution)
|
||||
noise_model = likelihoods.binomial()
|
||||
likelihood = likelihoods.EP(Y, noise_model)
|
||||
elif Y is not None:
|
||||
if not all(Y.flatten() == likelihood.data.flatten()):
|
||||
raise Warning, 'likelihood.data and Y are different.'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue