mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-10 12:32:40 +02:00
some tifying in the models classes
This commit is contained in:
parent
cd3bcee11c
commit
63ab143e7c
6 changed files with 15 additions and 26 deletions
|
|
@ -22,8 +22,12 @@ class Bernoulli(Likelihood):
|
|||
.. See also::
|
||||
likelihood.py, for the parent class
|
||||
"""
|
||||
def __init__(self, gp_link=None, analytical_mean=False, analytical_variance=False):
|
||||
super(Bernoulli, self).__init__(gp_link, analytical_mean, analytical_variance)
|
||||
def __init__(self, gp_link=None):
|
||||
if gp_link is None:
|
||||
gp_link = link_functions.Probit()
|
||||
|
||||
super(Bernoulli, self).__init__(gp_link, 'Bernoulli')
|
||||
|
||||
if isinstance(gp_link , (link_functions.Heaviside, link_functions.Probit)):
|
||||
self.log_concave = True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue