@staticmethod def sigmoid(z): return 1 / (1 + np.exp(-z)) @staticmethod def dsigmoid(y): return y * (1 - y) @staticmethod def dtanh(y): return 1 - y * y