Skip to content

Commit

Permalink
Fix spelling of russellrao; List all metrics
Browse files Browse the repository at this point in the history
* Updated the list of metrics based on the ValueError produced when
calling an incorrect error.
  • Loading branch information
birdsarah committed Aug 25, 2018
1 parent 1e9a85b commit 8c9bd92
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion doc/parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ of metrics, including:
- hamming
- jaccard
- dice
- russelrao
- russellrao
- kulsinski
- rogerstanimoto
- sokalmichener
Expand Down
27 changes: 15 additions & 12 deletions umap/umap_.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,27 +367,30 @@ def fuzzy_simplicial_set(
returns a float can be provided. For performance purposes it is
required that this be a numba jit'd function. Valid string metrics
include:
* euclidean
* manhattan
* chebyshev
* minkowski
* canberra
* euclidean (or l2)
* manhattan (or l1)
* cityblock
* braycurtis
* mahalanobis
* wminkowski
* seuclidean
* cosine
* canberra
* chebyshev
* correlation
* haversine
* cosine
* dice
* hamming
* jaccard
* dice
* russelrao
* kulsinski
* mahalanobis
* matching
* minkowski
* rogerstanimoto
* russellrao
* seuclidean
* sokalmichener
* sokalsneath
* sqeuclidean
* yule
* wminkowski
Metrics that take arguments (such as minkowski, mahalanobis etc.)
can have arguments passed via the metric_kwds dictionary. At this
time care must be taken and dictionary elements must be ordered
Expand Down

0 comments on commit 8c9bd92

Please sign in to comment.