def predict(self, input_vec):
    return self.activator((np.dot(input_vec, self.weights) + self.bias))
def predict(self, input_vec):
    return self.activator((np.dot(input_vec, self.weights) + self.bias))