Seemingly ineffective modifications to NaiveBayes script