Commit a009b7f
authored
Handling all identical vectors in UMAP
`smoot_knn_dist_kernel` just fails if all neighbors have zero distance (i.e. are identical vectors).
Instead of failing, set `rhos` and `sigmas` to specific values in such cases.
Closes #7017
Authors:
- Jinsol Park (https://github.com/jinsolp)
- Simon Adorf (https://github.com/csadorf)
Approvers:
- Victor Lafargue (https://github.com/viclafargue)
- Simon Adorf (https://github.com/csadorf)
URL: #6904smooth_knn_dist_kernel (#6904)1 parent 124608b commit a009b7f
2 files changed
Lines changed: 5 additions & 13 deletions
File tree
- cpp/src/umap/fuzzy_simpl_set
- python/cuml/cuml_accel_tests/upstream/umap
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
| 83 | + | |
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
| |||
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
125 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
| |||
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | 276 | | |
280 | | - | |
| 277 | + | |
281 | 278 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | 279 | | |
287 | 280 | | |
288 | 281 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
0 commit comments