Classifying the data with a naive Bayes classifier