-
Notifications
You must be signed in to change notification settings - Fork 2
Solver: Iterative Hessian Sketch #119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
vp314
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor changes requested. One small addition to the code base to check that the rows of the coefficient matrix exceed the columns. Another test change addition to see if everything works when the dimension of the compression is larger than the number of rows of the coefficient matrix.
| solver.R = UpperTriangular(qr!(solver.mat_view).R) | ||
| # Compute first R' solver R'R x = g | ||
| ldiv!(solver.buffer_vec, solver.R', solver.gradient_vec) | ||
| # Compute second R Solve Rx = (R')^(-1)g will be stored in gradient_vec | ||
| ldiv!(solver.gradient_vec, solver.R, solver.buffer_vec) | ||
| # update the solution | ||
| # solver.solution_vec = solver.solution_vec + alpha * solver.gradient_vec |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add "Iterative Hessian Sketch" to the wiki page (either v0.2 or v0.3, your choice). And indicate that we want to allow alternative subsolvers in the inner loop.
This pull request implements Iterative Hessian Sketch solver from Pilanci and Wainwright. The commit includes:
complete_solverfunctionrsolve!function