FA-97954 / Training label alignment / Member archive
One-hot targets omit classes absent from the current batch · case 04
One-hot targets omit classes absent from the current batch.
Case contract
Given zero-based class indices and declared class_count, emit one-hot rows of exactly that width; invalid indices yield all-zero rows.
Why this case matters
A small deterministic training-data operation makes label ownership and ordering explicit.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| absent trailing classes | [[1, 0], [0, 1]] | [[1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0]] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗