Changed trainings from scikit svm to self done logistic regression