integrated knn and bayes