A ‘non-parametric’ version of the naive Bayes classifier