Completed knn model