framework for logistic regression