Closed tahmidmehdi closed 5 years ago
The fast_knn function has stability issues if we're using Sheperd's weight function and distances are 0. In the fast_knn function, I added a small constant to distances to avoid division by 0.
LGTM. Thanks for the PR!
No problem! I've been using this at work & it seems to be the only knn imputation function that isn't too slow.
The fast_knn function has stability issues if we're using Sheperd's weight function and distances are 0. In the fast_knn function, I added a small constant to distances to avoid division by 0.