a framework for bayes classification