mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-01 15:52:39 +02:00
REFACTORING: model names, lowercase, classes uppercase
This commit is contained in:
parent
2a39440619
commit
2e5e8ac026
50 changed files with 436 additions and 3307 deletions
|
|
@ -13,7 +13,7 @@ default_seed = 10000
|
|||
# Some general utilities.
|
||||
def sample_class(f):
|
||||
p = 1. / (1. + np.exp(-f))
|
||||
c = np.random.binomial(1, p)
|
||||
c = np.random.Binomial(1, p)
|
||||
c = np.where(c, 1, -1)
|
||||
return c
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue