Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 30e952c

Browse filesBrowse files
stestaggglemaitre
authored andcommitted
[MRG] Fix documentation for russelrao formula (#19695)
1 parent c301f82 commit 30e952c
Copy full SHA for 30e952c

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎sklearn/neighbors/_dist_metrics.pyx

Copy file name to clipboardExpand all lines: sklearn/neighbors/_dist_metrics.pyx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ cdef class DistanceMetric:
183183
"dice" DiceDistance NNEQ / (NTT + NNZ)
184184
"kulsinski" KulsinskiDistance (NNEQ + N - NTT) / (NNEQ + N)
185185
"rogerstanimoto" RogersTanimotoDistance 2 * NNEQ / (N + NNEQ)
186-
"russellrao" RussellRaoDistance NNZ / N
186+
"russellrao" RussellRaoDistance (N - NTT) / N
187187
"sokalmichener" SokalMichenerDistance 2 * NNEQ / (N + NNEQ)
188188
"sokalsneath" SokalSneathDistance NNEQ / (NNEQ + 0.5 * NTT)
189189
================= ======================= ===============================

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.