Accept affinity and distance matrices
The Python version of PHATE now accepts both distance matrices and affinity matrices with the keyword knn_dist='precomputed'
.
We assume distance matrices have only zeroes along the diagonal, and affinity matrices have no zeroes on the diagonal.