Step function modified, now the output is either 1 or -1

This commit is contained in:
Ricardo 2013-09-11 16:06:05 +01:00
parent 3608290350
commit ef072f235c

View file

@ -118,7 +118,7 @@ class Step(GPTransformation):
""" """
def transf(self,f): def transf(self,f):
#transformation goes here #transformation goes here
return np.where(f>0, 1, 0) return np.where(f>0, 1, -1)
def dtransf_df(self,f): def dtransf_df(self,f):
pass pass