A Naive Bayes suite in Scala working on optical digit recognition