Skip to content

Commit

Permalink
Merge pull request #1137 from NickCrews/patch-1
Browse files Browse the repository at this point in the history
docs: mention "precomputed" metric as a parameter
  • Loading branch information
lmcinnes authored Jul 8, 2024
2 parents b45cece + 102b2fa commit 126a31f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,13 @@ of metrics, including:
- sokalsneath
- yule

**Precomputed**

All of the above metrics assume your input data is "raw" in some N-dimensional space.
Sometimes, you have already calculated the pairwise distances between points,
and your input data is a distance/similarity matrix.
In this case, you can do something like ``UMAP(metric='precomputed').fit_transform(<distance matrix>)``.

Any of which can be specified by setting ``metric='<metric name>'``; for
example to use cosine distance as the metric you would use
``metric='cosine'``.
Expand Down

0 comments on commit 126a31f

Please sign in to comment.