mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-01 07:46:22 +02:00
Link functions defined
This commit is contained in:
parent
95d5bcc1b9
commit
775ec15543
4 changed files with 156 additions and 64 deletions
|
|
@ -79,12 +79,16 @@ def toy_linear_1d_classification(seed=default_seed):
|
|||
|
||||
data = GPy.util.datasets.toy_linear_1d_classification(seed=seed)
|
||||
Y = data['Y'][:, 0:1]
|
||||
Y[Y.flatten() == -1] = 0
|
||||
|
||||
# Kernel object
|
||||
kernel = GPy.kern.rbf(1)
|
||||
|
||||
# Likelihood object
|
||||
distribution = GPy.likelihoods.likelihood_functions.probit()
|
||||
link = GPy.likelihoods.link_functions.probit
|
||||
distribution = GPy.likelihoods.likelihood_functions.binomial(link)
|
||||
#distribution = GPy.likelihoods.likelihood_functions.binomial()
|
||||
#distribution = GPy.likelihoods.likelihood_functions.probit()
|
||||
likelihood = GPy.likelihoods.EP(Y, distribution)
|
||||
|
||||
# Model definition
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue