Changed from Quad to log model in NaiveBayes