Fixed logistic regression training