tried to address some rare event issues with logistic regression encoder