-
Notifications
You must be signed in to change notification settings - Fork 23
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
Hutch++ #52
base: main
Are you sure you want to change the base?
Hutch++ #52
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #52 +/- ##
==========================================
+ Coverage 78.62% 78.85% +0.23%
==========================================
Files 36 36
Lines 2975 2998 +23
==========================================
+ Hits 2339 2364 +25
+ Misses 636 634 -2
☔ View full report in Codecov by Sentry. |
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.
Really nice work!
Maybe we can add a case to approx_diag test
Have you evaluated on some LinearOperators to verify that we get the improved convergence rate?
Also, I wonder if we will need to think about the error tolerances differently for this function. For the standard Hutchinson estimator we have a stopping criteria as the standard error of the estimate, but it doesn't really make sense in the context of H++. I wonder if we should be deciding the number of probes up front based on the bound in their paper?
@@ -98,7 +98,7 @@ def exact_diag(A: LinearOperator, k=0, bs=100, tol=3e-2, max_iters=10000, pbar=F | |||
|
|||
|
|||
@export | |||
def approx_diag(A: LinearOperator, k=0, bs=100, tol=3e-2, max_iters=10000, pbar=False): | |||
def approx_diag(A: LinearOperator, k=0, bs=100, tol=3e-2, max_iters=10000, hutchpp_dist="rademacher", pbar=False): |
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.
Maybe lets separate this kwarg into
hutchpp=False
probe_dist='normal'
or 'rademacher'
to keep things more straightforward
I wonder if it would be worth looking into the single pass estimator in https://arxiv.org/abs/2109.10659, @Fr0do do you have any thoughts on the differences between the different |
Resolves #47