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

daniel1noble / BACE / 40278697418
89%

Build:
DEFAULT BRANCH: main
Ran 26 Oct 2026 06:17AM UTC
Jobs 1
Files 18
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

26 Oct 2026 06:13AM UTC coverage: 88.379% (+0.2%) from 88.196%
40278697418

push

github

daniel1noble
Final phase: stochastic sweeps restore full imputation uncertainty (Ayumi pt 1)

Each of the n_final runs made ONE pass over the variables from the same
chained-phase point-imputed start. Variables are imputed one at a time, so
the first-visited variable (the analysis response y, by formula order)
conditioned on IDENTICAL point fills of the other variables in every run:
reproduced with a spy - the x values y's kept model saw had SD = 0 across
runs at every x-missing row (Ayumi observed the same on 2,113 AVONET rows).
y's between-imputation variance was MCMC noise, intervals too narrow, and
formula order changed results.

Fix: new `sweeps` argument (default 3) on bace_final_imp()/bace(). Each run
now cycles the variables sweeps times with sample = TRUE throughout - a
Gibbs sweep over the missing data - so every variable conditions on fresh
posterior-predictive draws of the others; only the last pass's values and
models are kept (one value per cell; the kept models are exactly what
pool_posteriors stacks). After the fix the same spy shows SD 0.095-0.78.
Design (red-team reviewed):
- auto-collapse to 1 pass when <=1 variable is missing (then one pass is
  an EXACT joint draw): zero cost for the common case and the regime all
  previous validation covered (dev/12 and dev/13 only made y missing);
- warm-up passes keep the full burn-in but a short 50-draw tail (they only
  need one stationary draw; the long tail buys pooled ESS and is kept for
  the final pass) -> default costs ~1.4x the old single pass, not 3x;
- optional `seed`: per-run L'Ecuyer-CMRG streams, so serial == parallel,
  reruns reproduce, and the fallback reuses a failed worker's stream;
- the parallel fallback now redoes ONLY failed runs (was: all n_final).

sweeps = 1 reproduces the old behaviour. Default to be confirmed by the
dev/15 calibration study (plan: .agents/plans/fixes-2026-10-ayumi.md).
Tests: 21 new (fit counts incl. warm-tail nitt per sweep, the SD > 0
regression, auto-collapse... (continued)

61 of 68 new or added lines in 2 files covered. (89.71%)

123 existing lines in 4 files now uncovered.

3696 of 4182 relevant lines covered (88.38%)

99.48 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
90.53
3.98% R/bace_final_imp.R

Coverage Regressions

Lines Coverage ∆ File
72
82.16
-0.19% R/model_functions.R
24
87.5
-0.13% R/bace_imp.R
16
90.53
3.98% R/bace_final_imp.R
11
93.62
-0.02% R/bace.R
Jobs
ID Job ID Ran Files Coverage
1 40278697418.1 26 Oct 2026 06:17AM UTC 18
88.38
GitHub Action Run
Source Files on build 40278697418
  • Tree
  • List 18
  • Changed 5
  • Source Changed 5
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40278697418
  • ace9ed52 on github
  • Prev Build on main (#40276834622)
  • Next Build on main (#40280604963)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc