use logistic model for all training data