-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- No longer allocate and copy the hessian for damping, just the diagonal - Covariance computation no longer does any damping (we no longer have an extra copy of the hessian to damp, and I don't want to make the argument non-const - damping here is a bit dubious anyway imo) - diagonal_damping_min also applies when keep_max_diagonal_damping is off - Linear error is computed without computing the Jacobian, and it's just always on. Expense is linear in number of optimized variables (vector-vector products and sums), based on http://www2.imm.dtu.dk/pubdb/edoc/imm3215.pdf - Gain ratio is similarly always computed and logged - Only suggest turning on debug_checks if it isn't already on - `update_` stores the update, not the negative update. I think we were also doing an extra allocation here in the pass to `Update`, although I did not confirm Reviewers: ryan-b,xipeng Topic: sf-opt-1 GitOrigin-RevId: 372bf6863d4813c867e09f5f87896c265fe4af05
- Loading branch information
1 parent
7da9bed
commit bd7c210
Showing
7 changed files
with
77 additions
and
57 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
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
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
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