Repository navigation
Make Table 1 reproducible and reconcile the paper with the docs - #220
Merged
Merged
Conversation
benchmarks/reproduce_table1.py is a single entry point that reproduces the paper's parity rows against the Fortran reference: a bundled tier (no download) for the Amari distance, score-function/sufficient- statistics, and multi-model rows, and an external tier for the headline correlation/log-likelihood rows. No hardcoded paths, thread count, or CUDA assumption: the compute device is auto-detected with a printed CPU fallback (MPS has no float64), and the Fortran binary is resolved via pamica.native's cross-platform release resolver instead of the bundled macOS-only amica15mac fixture. Each printed row is labeled against the paper's table so a reviewer can check it off directly. Removes the four workstation-specific scripts this replaces (.context/issue-144-parity-data-adequacy/run_5seed_newton0.sh, run_fortran_only.py, run_ng_only.py, bundled_sample_newton0.py), whose logic it reuses and adapts; updates a stale cross-reference in the remaining test_ds002718_32ch.py.
Add a "Reproducing Table 1" section to benchmarks/README_dimsweep.md: download size, measured bundled-tier wall-clock, and an external-tier estimate derived from .context/issue-90/ksweep_findings.md's measured single-fit timing at the same 70-channel/747,750-frame/2000-iteration configuration, including the CPU-only slowdown. Also adds the missing full-recording (untruncated) extraction recipe the external tier needs, alongside the existing 60,000-frame recipe used for the ms/iteration sweeps. No cheaper reduced-budget tier is offered: below k~60 the decomposition is under-determined, so a shorter run would trade accuracy for speed rather than reproduce the same number faster.
The paper claimed a third party could re-run Table 1; validation.md said the opposite in writing, that the headline script was 'not yet a portable one-command reproduction' and that validate_implementations.py's defaults 'do not reproduce either row directly'. Both cannot stand, and reproducibility is what JOSS reviewers check hardest. The paper now says what is true: all but the two on002718 rows re-run from the bundled sample alone, and the documentation states what each costs. validation.md documents the new single entry point, its two tiers, and points at the measured cost, replacing references to four workstation-specific scripts that no longer exist. Closes #144
5 of 8 tasks
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.
Closes #144.
The problem
paper.mdclaimed "a third party can re-run Table 1".docs/guides/validation.mdsaid the opposite, in writing:validate_implementations.py's defaults "do not reproduce either row directly", and the script behind the headline numbers "is not yet a portable one-command reproduction". Both could not stand, and reproducibility is the thing JOSS reviewers check hardest.The script in question,
.context/issue-144-parity-data-adequacy/run_5seed_newton0.sh, hardcodedcd ~/pamica-issue144,/tmpoutput paths, a 24-thread count, and assumed CUDA. It also lived under.context/, which is developer notes, not somewhere a reviewer should have to look.What changed
benchmarks/reproduce_table1.py, one entry point, two tiers:It prints each measured value beside the paper row it corresponds to, so a reviewer checks numbers off rather than reverse-engineering the mapping. The device is auto-detected, with an explicit printed fallback to CPU on Apple GPUs since parity runs are float64. The Fortran binary resolves through
pamica.native's cross-platform resolver rather than the bundled macOS-only fixture, so this works on Linux.Replaces four workstation-specific scripts, whose logic it reuses.
Cost is documented rather than glossed.
benchmarks/README_dimsweep.mdnow gives measured wall-clock per tier, download size, hardware assumed, and what changes without a GPU: bundled is ~33 min end to end on a 10-core Apple Silicon laptop, external needs a ~224 MB download and is materially longer.The paper now says what is true:
Deliberately not done
No cheap reduced-budget tier. Below$k\approx60$ the decomposition is under-determined and backends diverge for legitimate reasons, so a faster variant would reproduce a noisier number and invite exactly the misreading this issue exists to prevent. High-
kis the protocol because it reduces uncertainty; the honest response to verification being expensive is to state the price, not to invent a cheaper thing to measure.Verification
Ran the bundled tier here:
The full external tier was not run here; it needs the download and hours of compute.
ruffandtyclean.Paper is 1746 words, within the 750-1750 range.