Addressing class imbalance for logistic regression