Skip to content

Commit 9e49be2

Browse files
lmcinnesjnothman
authored andcommitted
[DOC] Fix latex in trustworthiness docstring (scikit-learn#8832)
Curly parens were misplaced resulting in an empty sum when rendered.
1 parent 581e135 commit 9e49be2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/manifold/t_sne.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def trustworthiness(X, X_embedded, n_neighbors=5, precomputed=False):
441441
.. math::
442442
443443
T(k) = 1 - \frac{2}{nk (2n - 3k - 1)} \sum^n_{i=1}
444-
\sum_{j \in U^{(k)}_i (r(i, j) - k)}
444+
\sum_{j \in U^{(k)}_i} (r(i, j) - k)
445445
446446
where :math:`r(i, j)` is the rank of the embedded datapoint j
447447
according to the pairwise distances between the embedded datapoints,

0 commit comments

Comments
 (0)