def activation(x): #return expit(x) ##return 1.7159 * math.tanh(2/3*x) #print(x) return np.tanh(x)#list(map(math.tanh, x)) #return np.multiply(x > 0, x)