Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bug fix: Save previous parameters & other nits#18

Merged
dkweiss31 merged 2 commits intodkweiss31:mainfrom
HarshBabla99:bug_fix
Oct 29, 2025
Merged

Bug fix: Save previous parameters & other nits#18
dkweiss31 merged 2 commits intodkweiss31:mainfrom
HarshBabla99:bug_fix

Conversation

@HarshBabla99
Copy link
Contributor

Somewhere in #16, we accidentally stopped updating previous_parameters at every epoch. Uh oh!

Also made some minor simplifications:

  • Avoid running save_period = opt_options['save_period'] at every epoch.
  • Simplify computing the total_cost.

@dkweiss31
Copy link
Owner

Good catch! How did you catch this bug? If possible it might be nice to add a test to catch this in the future

@HarshBabla99
Copy link
Contributor Author

Wasn't anything too smart tbh. I wanted to make more changes, and caught the bug purely by accident.

@dkweiss31
Copy link
Owner

Sounds good, thanks @HarshBabla99 !

@dkweiss31 dkweiss31 merged commit 17a7293 into dkweiss31:main Oct 29, 2025
1 check passed
@HarshBabla99 HarshBabla99 deleted the bug_fix branch October 29, 2025 22:18
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.

2 participants