Modified logistic regression to train on all data