add to_self support for knn divergences