Hello all, I can not use Perceptron(Logistic regression) of Machine learning. How can i write function?