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

ADAM bug when calculating the gradient in batches #178 (backport #183) #200

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Aug 20, 2024

Summary

There is only one small error that prevents ADAM from calculating the gradient_num_diff for batches with max_evals_grouped. ADAM only gives "fun, self._eps" as argument when calling gradient_num_diff. This leads to max_evals_grouped=None, which leads to max_evals_grouped=1. Therefore, regardless of the call to set max_evals_grouped, max_evals_grouped=1 will always apply for ADAM.

Details and comments

This issue was discussed in #178


This is an automatic backport of pull request #183 done by [Mergify](https://mergify.com).

Co-authored-by: Peter Röseler <[email protected]>
Co-authored-by: Steve Wood <[email protected]>
Co-authored-by: Elena Peña Tapia <[email protected]>
(cherry picked from commit 6724b47)
@coveralls
Copy link

Pull Request Test Coverage Report for Build 10472651009

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 90.485%

Totals Coverage Status
Change from base Build 10319301488: 0.0%
Covered Lines: 6362
Relevant Lines: 7031

💛 - Coveralls

@mergify mergify bot merged commit 7f3f1ef into stable/0.3 Aug 20, 2024
19 checks passed
@mergify mergify bot deleted the mergify/bp/stable/0.3/pr-183 branch August 20, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants