mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-11 13:02:38 +02:00
Step function modified, now the output is either 1 or -1
This commit is contained in:
parent
3608290350
commit
ef072f235c
1 changed files with 1 additions and 1 deletions
|
|
@ -118,7 +118,7 @@ class Step(GPTransformation):
|
|||
"""
|
||||
def transf(self,f):
|
||||
#transformation goes here
|
||||
return np.where(f>0, 1, 0)
|
||||
return np.where(f>0, 1, -1)
|
||||
|
||||
def dtransf_df(self,f):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue