data transfer for Naive Bayes