bug fixes: naive bayes empty training and decision tree splitting by target