ready to optimize logistic regression