Skip to content

What should I do if nan values are important information? #953

Answered by lmcinnes
SamKlier asked this question in Q&A
Discussion options

You must be logged in to vote

UMAP can support custom distance functions as long as they compile with numba (use the numba.njit decorator on the function); as long as you can write a distance function that can handle NaN in the vectors and output sensible (i.e. non NaN) distances then it should all work fine.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@SamKlier
Comment options

@lmcinnes
Comment options

@SamKlier
Comment options

@lmcinnes
Comment options

Answer selected by SamKlier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants