-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve convergence of the Newton-based search for beta.
We improve convergence by setting the initial beta based on the distance to the furthest neighbor. This adjusts the initial guess to match the scale of the distances, reducing the number of iterations to get to the right ballpark. We also make sure to update the binary search bounds, even when Newton's is working properly. This ensures that, if we ever need to fall back to a binary search, we can leverage previous Newton successes to narrow the interval.
- Loading branch information
Showing
3 changed files
with
203 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.