mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-07-05 16:02:13 +02:00
GPclassification has to default inference method to EP
This commit is contained in:
parent
d27733bf5f
commit
f666d207f2
1 changed files with 2 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ import numpy as np
|
||||||
from ..core import GP
|
from ..core import GP
|
||||||
from .. import likelihoods
|
from .. import likelihoods
|
||||||
from .. import kern
|
from .. import kern
|
||||||
|
from ..inference.latent_function_inference.expectation_propagation import EP
|
||||||
|
|
||||||
class GPClassification(GP):
|
class GPClassification(GP):
|
||||||
"""
|
"""
|
||||||
|
|
@ -27,4 +28,4 @@ class GPClassification(GP):
|
||||||
|
|
||||||
likelihood = likelihoods.Bernoulli()
|
likelihood = likelihoods.Bernoulli()
|
||||||
|
|
||||||
GP.__init__(self, X=X, Y=Y, kernel=kernel, likelihood=likelihood, name='gp_classification')
|
GP.__init__(self, X=X, Y=Y, kernel=kernel, likelihood=likelihood, inference_method=EP(), name='gp_classification')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue