Fixed bug with large datasets resulting in zero probability for naive bayes