cross-validation (logistic regression)