Skip to content

Commit dc5e00e

Browse files
authored
Merge pull request #6804 from VesnaT/dist_spearman
[FIX] Distances: Spearman actually computes Spearman instead of Pearson
2 parents 38c7b96 + 45e0fda commit dc5e00e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Orange/widgets/unsupervised/owdistances.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ class MetricDef(NamedTuple):
5757
"Absolute value of Pearson correlation; distance = 1 - |ρ|",
5858
distance.PearsonRAbsolute),
5959
MetricDef(Spearman, "Spearman",
60-
"Pearson correlation; distance = 1 - ρ/2",
61-
distance.PearsonR),
60+
"Spearman correlation; distance = 1 - ρ/2",
61+
distance.SpearmanR),
6262
MetricDef(SpearmanAbsolute, "Spearman (absolute)",
6363
"Absolute value of Pearson correlation; distance = 1 - |ρ|",
6464
distance.SpearmanRAbsolute),

0 commit comments

Comments
 (0)