Skip to content
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

[ADD] Sub-sampling in BatchGrad extension #200

Merged
merged 4 commits into from
Jul 7, 2021

Conversation

f-dangel
Copy link
Owner

@f-dangel f-dangel commented Jul 7, 2021

This PR extends BackPACK's individual gradient extension and allows specifying the mini-batch samples for which the quantity will be extracted (#12), rather than evaluating individual gradients for every sample in the mini-batch.

Auxiliary:

  • Improve type annotations and code of abstract module extension class
  • Support sub-sampling in the test suite and reduce duplication
  • Rewrite BatchGrad tests using pytest fixtures

@f-dangel f-dangel mentioned this pull request Jul 7, 2021
@f-dangel f-dangel merged commit 69a83a4 into development Jul 7, 2021
@f-dangel f-dangel deleted the subsampling-batch-grad branch July 7, 2021 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant