Skip to content

Test the values of geometric_cooling - #24

Merged
kingaa merged 2 commits into
kingaa:develfrom
atpabuser:cooling-test
Oct 4, 2026
Merged

kingaa merged 2 commits into
kingaa:develfrom
atpabuser:cooling-test

Conversation

@atpabuser

Copy link
Copy Markdown
Contributor

Test the values of geometric_cooling

Thanks for fixing geometric_cooling in v0.12.1. This adds a test of the
schedule's values, so the bug cannot return unnoticed (the suite used
geometric_cooling but never checked what it returns):

  • c(0) = 1, c(n/2) = √frac and c(n) = frac, for the default n and for n = 20;
  • frac = 1 gives a constant schedule;
  • frac = 0 is refused.

With the old formula log(frac/n), 5 of the 7 checks fail; on current
devel all 7 pass.

c(0) = 1, c(n/2) = sqrt(frac), c(n) = frac for the default n and n = 20;
frac = 1 gives a constant schedule; frac = 0 is refused. Five of the seven
checks fail under the old formula log(frac/n).
@codecov

codecov Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (d592885) to head (35e0d13).

Additional details and impacted files
@@            Coverage Diff            @@
##             devel       #24   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           28        28           
  Lines          871       871           
=========================================
  Hits           871       871           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kingaa
kingaa merged commit f971642 into kingaa:devel Oct 4, 2026
7 checks passed
kingaa added a commit that referenced this pull request Oct 4, 2026
Test the values of geometric_cooling
kingaa added a commit that referenced this pull request Oct 4, 2026
Test the values of geometric_cooling
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