fixing learning curve for logistic regression