def dactivation(x): #v = expit(x) #return v*(1-v) #return 1 - math.tanh(x)**2 return 1 - np.tanh(x)**2#list(map(lambda y: 1 - math.tanh(y)**2, x)) #return np.float64(x > 0)