Add knn weights.