Repository navigation
Support Float32 fixed-grid density tracking and MEPV - #96
Merged
Merged
Conversation
Collaborator
Coverage Report for CI Build 42882696374Coverage increased (+0.6%) to 55.6%Details
Uncovered Changes
Coverage Regressions5 previously-covered lines in 1 file lost coverage.
Coverage Stats
💛 - Coveralls |
frankier
force-pushed
the
codex/float32-grid-mepv
branch
from
November 10, 2026 18:50
d11315c to
7a5af02
Compare
frankier
changed the base branch from
codex/grid-preallocation-scratch
to
main
November 10, 2026 18:50
Benchmark Results
Benchmark PlotsA plot of the benchmark results have been uploaded as an artifact to the workflow run for this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #94. Builds on the prepared fixed-grid scan merged in #93.
The linear and log trackers keep the precision of the evaluated density. An empty likelihood uses a typed identity derived from the ability coordinate. Append and speculative updates reuse compatible buffers and promote when the response probabilities are wider. EAP and prepared candidate reductions use the resulting precision, including mixed Float32 grids with Float64 priors or banks.
Scalar fixed grids accept coordinates of any
Realtype supported by the bank and integrator. Prepared scans infer scratch types from the actual weight arithmetic. Scalar variance and exhaustive search preserve criterion precision. Log density storage follows PBB's floating-point weight API. Regression tests also cover Float16, BigFloat, rational coordinates, and a BigFloat selection that changes if scores are rounded to Float64. Regression tests cover the empty history, append, rollback, clearing, rebuilding, and speculative replacements in linear and log space. They compare the full score vector and public selection against an independent Float64 2PL calculation.FittedItemBanks 0.7.7 widens Float32 guess/slip responses to Float64 (FIB #21). The benchmark uses ordinary 2PL transfer banks so both CAT precisions use the same public path with released dependencies.
Julia 1.13.3 passed all 1,091 local assertions across the prepared MEPV, grid preallocation, and incremental grid test files. The full Julia 1.13 test job and Coveralls upload also passed. CI run
Julia 1.13.3 benchmark
Median milliseconds per complete warmed selection call, including preparation. CAT uses public
Stateful.next_item. SuperFastCAT usesget_next_item!. One Julia thread pinned to CPU 2 on an Intel Core Ultra 5 225U, with released PBB 0.8.11 and FittedItemBanks 0.7.7 and SuperFastCAT at4902fba. Each bank is a prefix of the same seeded 2PL fixture, with ten fixed responses, a standard normal prior, and 33 points on [-4, 4]. The runs used randomized interleaved rounds (51 up to 10,000 items and 31 at 100,000). No timed GC occurred. Timed compiler activity was under 0.14 ms in aggregate per row across all rounds.Every candidate score was compared with CAT Float64. Across all sizes, maximum relative error was
3.82e-7for CAT Float32 and3.78e-7for SuperFastCAT. The actual PBB weight producer, compiled with the closure and buffers from the public prepared state, emitted<8 x float>for Float32 and<4 x double>for Float64.