Spark app that trains a Naive Bayes Classifier and evaluates its precision