• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

f-dangel / curvlinops / 22869106971
91%

Build:
DEFAULT BRANCH: main
Ran 09 Mar 2026 07:18PM UTC
Jobs 1
Files 47
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Mar 2026 06:41PM UTC coverage: 91.208% (-0.06%) from 91.267%
22869106971

push

github

web-flow
[ADD] Support non-binary labels for `BCEWithLogitsLoss` (#257)

* [DEL] Remove binary-only restriction for BCEWithLogitsLoss targets (#257)

The BCE loss Hessian diag(σ(f)·(1-σ(f))) is independent of targets,
so the exact and MC GGN are valid for any target in [0, 1]. Remove the
_check_binary_if_BCEWithLogitsLoss safeguard and related warning
infrastructure. Update test cases to use soft labels via rand().

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* [DEL] Remove binary_classification_targets, use soft labels everywhere

Migrate KFAC/EKFAC tests to rand() targets and remove the
pass-through wrapper in KFAC grad outputs setup. Delete the
now-unused binary_classification_targets helper.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* [FIX] Use float64 in gradient_and_loss test, convert BCE targets in change_dtype

The gradient_and_loss test was using float32 which caused flaky
precision failures. Convert to float64 like other tests. Also fix
change_dtype to convert BCEWithLogitsLoss targets (now soft labels).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: f-dangel <felix.dangel@concordia.ca>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

6 of 6 new or added lines in 4 files covered. (100.0%)

23 existing lines in 5 files now uncovered.

2189 of 2400 relevant lines covered (91.21%)

0.91 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
98.33
-0.2% curvlinops/ggn.py
1
96.88
-0.09% curvlinops/gradient_moments.py
3
96.51
-0.43% curvlinops/ggn_utils.py
5
94.05
0.15% curvlinops/utils.py
13
92.7
0.23% curvlinops/_torch_base.py
Jobs
ID Job ID Ran Files Coverage
1 22869106971.1 09 Mar 2026 07:18PM UTC 47
91.21
GitHub Action Run
Source Files on build 22869106971
  • Tree
  • List 47
  • Changed 9
  • Source Changed 0
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e81f6bbd on github
  • Prev Build on main (#22827494237)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc