Skip to content

Commit

Permalink
change knn_dist indexing, fixes lmcinnes#34 for inverse_transform
Browse files Browse the repository at this point in the history
  • Loading branch information
paxtonfitzpatrick committed Mar 3, 2020
1 parent 700079d commit 6f25b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umap/layouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def optimize_layout_inverse(
)

w_l = weight[i]
grad_coeff = -(1 / (w_l * sigmas[j] + 1e-6))
grad_coeff = -(1 / (w_l * sigmas[k] + 1e-6))

for d in range(dim):
grad_d = clip(grad_coeff * grad_dist_output[d])
Expand Down

0 comments on commit 6f25b3c

Please sign in to comment.