Skip to content

Accept affinity and distance matrices

Compare
Choose a tag to compare
@scottgigante scottgigante released this 01 Jun 00:06
· 482 commits to main since this release
ffb3c24

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.