This repository holds the code and the curated experiment records of the manuscript of the same title by Özkan Canay. The manuscript's data and code availability statement links here.
The benchmark separates the ranker that orders candidate pair and triple products from the policy that selects a support, by comparing each adaptive support with its own ranker's raw prefix at the same realized size. All 160 original computational units of the frozen v5 benchmark completed, but one scenario-seed cell fell short of the exact-cardinality requirement. The protocol prohibits imputation, cell deletion and a fallback interval, so the predeclared confirmatory verdict is unavailable and every comparison in these records is descriptive. The ranker-family follow-up (v6) lies outside the confirmatory estimand, the separate four-ranker experiment (mta006) is exploratory, and Dry Bean provides prediction-only evidence because its interaction truth is unknown. The records do not establish ranker superiority or policy benefit. They are published so that the descriptive results of the manuscript can be checked against the artifacts that produced them.
| Path | Contents |
|---|---|
code/v5/ |
source of the original frozen benchmark |
code/v6/, code/mta006/, code/vps005/ |
source freezes of the ranker-family follow-up, the corrected x86-64 extension and the ARM64 execution |
data/v5/ |
run outputs of the original benchmark, including final_adjudication.json |
data/v6/cells/ |
42 scenario-seed cells (S00 to S13) of the ranker-family follow-up |
data/mta005/units/ |
excluded initial x86-64 attempt, with 146 completed and 8 incomplete unit records |
data/mta006/units/ |
160 unit records of the corrected x86-64 extension |
data/vps005/units/ |
40 unit records of the ARM64 execution |
expected/ |
the summaries that each bundle's analysis scripts reproduce |
expected/mta005/ |
per-unit version records and the status of the excluded attempt |
expected/cross_environment/ |
the paired x86-64 and ARM64 comparison, fit by fit and prediction by prediction |
figures/source/, figures/expected/ |
figure sources and the rendered figures |
reproduction/ |
portable runner, comparison tools and release kits for rerunning units on a new machine |
SOURCE_MAP.json |
SHA-256 of every file of the frozen bundle (362 KB) |
REPOSITORY_PACKAGING.json |
the two files stored gzipped in this repository and their original digests |
data/mta005/units/ preserves records from the initial x86-64 extension
attempt, which was stopped after 146 completed cells. Under scikit-learn 1.7.2,
l1_ratio=1 was ignored with the default L2 penalty, so the intended L1 ranker
used L2. The attempt is excluded from the reported results, and all 160 cells
were rerun with explicit L1 in data/mta006/units/.
Each completed unit has its saved result, sanitized identity and 328 derived
rank records. The eight incomplete units keep only sanitized identity and
progress records, without partial fits. expected/mta005/version_records.csv
records the environment and source freeze hash for each of the 154 started
units. The original identities did not record resolved L1 parameters, and the
table marks them as not recorded. The accompanying status.json describes the
exclusion and the source archive. These files document the attempt and its
stopping point and add no evidence to the corrected extension.
SOURCE_MAP.json gives a SHA-256 for every path of the frozen bundle. Two of
those paths are stored differently in this repository:
data/v5/full-synthetic-primary/fit_calls.csv -> data/v5/full-synthetic-primary/fit_calls.csv.gz
data/v5/full-real-descriptive/fit_calls.csv -> data/v5/full-real-descriptive/fit_calls.csv.gz
REPOSITORY_PACKAGING.json records the original size and digest of each file
beside the stored ones. From the repository root,
python reproduction/unpack_records.py --check checks every stored file
against these digests and writes nothing. SOURCE_MAP.json lists the frozen
bundle only, which is LICENSE, code/, data/, expected/ and figures/.
This README, the other files at the repository root and the reproduction/
folder are not listed.
Three analysis scripts are stored with a neutral run-folder label in one path
literal each: code/figure_derivation_original.py,
code/v5/analysis/analyze_real_descriptive_amended.py and
code/v5/analysis/build_manuscript_evidence.py. Their stored digests differ
from SOURCE_MAP.json, and data/v5/final_adjudication.json names the
original digest of the second script. REPOSITORY_PACKAGING.json lists the
original and the stored digest of each, and the original bytes are in the Git
history at commit cdd3d4a. With these three exceptions, every digest in
SOURCE_MAP.json applies as written after gzip -d on the two files.
Of the stored files, 694 are single-file gzip streams in three classes. The repository holds no zip, tar or other multi-file archive.
| Files | Count | Why they are compressed |
|---|---|---|
data/mta005/units/*/result.json.gz, data/mta006/units/*/result.json.gz, data/vps005/units/*/result.json.gz |
346 | written in compressed form by the experiment producers; SOURCE_MAP.json gives the digests of the compressed files |
data/mta005/units/*/rank_records.json.gz, data/mta006/units/*/rank_records.json.gz, data/vps005/units/*/rank_records.json.gz |
346 | as above |
data/v5/*/fit_calls.csv.gz |
2 | compressed only in this repository, because the larger file (115,453,809 bytes) exceeds the 100 MiB limit that GitHub sets for a single file |
One command, run from the repository root, decompresses all of them into
unpacked/ and checks every digest, using only the Python standard library.
--in-place writes each decompressed file next to its .gz file instead.
python reproduction/unpack_records.py --out unpackedThe commands in this section need Linux and Python 3.12 and run from the
repository root unless a working directory is named. Write new outputs to a
fresh directory and keep the published data/ and expected/ records
unchanged. A rerun made with these tools is a reproduction. It does not replace
the frozen runs or change any number reported in the manuscript.
The frozen launcher code/v5/src/sc_shil_experiment.py starts a block only
after checking the run-authorization records of the original execution (freeze,
timing, watchdog and execution bindings). Those records name the execution hosts
and tools and are not published, so the launcher itself cannot be started from
this repository. The units of its frozen plan are rerun with
reproduction/v5_portable.py, which checks the published sources against the
frozen digests and then calls the frozen unit functions unchanged:
python3 -m venv .venv
. .venv/bin/activate
python -m pip install -r code/v5/environment/requirements_locked.txt
python reproduction/unpack_records.py --check
python reproduction/v5_portable.py --block full-synthetic --list
python reproduction/v5_portable.py --block full-synthetic --seed 1103 --jobs 2 --output runs/v5-synthetic-1103
python reproduction/compare_v5.py --reproduced runs/v5-synthetic-1103
python reproduction/v5_portable.py --block full-real --unit unit-0001 --output runs/v5-dry-bean-split-11
python reproduction/compare_v5.py --reproduced runs/v5-dry-bean-split-11--list prints the frozen plan of a block, and any of its units can be chosen
with --unit or --seed, or the whole block with --all. The synthetic block
has 140 units, covering the fourteen scenarios S00 to S13 with seeds 1103, 1129,
1151, 1171, 1181, 1201, 1213, 1231, 1249 and 1277. The Dry Bean block has 10
units with split seeds 11, 23, 37, 53, 71, 89, 101, 131, 157 and 181, and it
needs network access to the hash-checked UCI archive. The S13 block has 10 units
with the synthetic seeds. The recorded environment is Linux/aarch64 with Python
3.12.3, as saved in data/v5/*/environment.json. The data/v5/*/run_summary.json
files record elapsed times of 3,223.48 seconds for the synthetic block,
97,172.65 seconds for Dry Bean and 57.05 seconds for the structured S13 block.
The times come from the original host and help to size a run on another one.
The S13 glinternet sensitivity (block full-structured-s13) fits the R package
glinternet 1.0.13 in a Docker container for each of its 10 units, so it also
needs Docker. --build-image builds the image with the frozen build command
from the restored Dockerfile, and the block then runs in the same Python
environment as the other v5 units:
python reproduction/v5_portable.py --build-image --output runs/glinternet-image
python reproduction/v5_portable.py --block full-structured-s13 --all --output runs/v5-s13
python reproduction/compare_v5.py --reproduced runs/v5-s13Because the image holds ARM64 binaries, an x86-64 host needs arm64 emulation
in Docker. The frozen code of this arm reads the run freeze, the design freeze,
the build authorization and three further governance records of the original
S13 execution. These records name the execution hosts and tools and are not
published, so the portable runner reads none of them. It checks that their
declared digests agree with the published code and run summary, and it does not
check their contents. reproduction/README.md describes each replaced check,
and the run record lists them. The small test fixture that
code/v5/comparators/glinternet/build_contract.json binds is restored under
reproduction/restored/v5/comparators/glinternet/fixture/.
The v6 commands run in code/v6/.
python -m pip install -r environment/requirements_locked.txt
python original_producers/run_discrimination_pilot.py --config config/v6_pilot_config.json --output reproduced/v6 --seeds 3
--seeds 3 selects the first three configured outer seeds, 1103, 1129 and
1151. Without a --scenarios filter all fourteen scenarios S00 to S13 are
included, which gives the 42 cells of data/v6/cells/. The code writes a
checkpoint per cell under the output directory. --resume continues from
existing checkpoints, and --summary-only aggregates checkpoints without
running cells. environment/requirements_locked.txt pins NumPy 2.3.5, pandas
2.2.3, scikit-learn 1.8.0, psutil 7.2.2 and SciPy 1.17.1. The bundle supplies
no v6-specific Python version or operating-system record, and its summary gives
no wall time for a fresh run. The recorded elapsed_seconds=0.02 also counts
checkpoint-only aggregation, so it is not the duration of 42 newly fitted cells.
The extension producer run_extension.py opens its science phase only with a
freeze record and a preflight made on the machine that runs it. The gate files
of the original runs name their hosts and tools and are not published, so each
bundle has a release kit under reproduction/release/.
reproduction/assemble_extension_root.py builds an execution root from
code/<bundle>/ and the kit, and reproduction/new_machine_preflight.py writes
a reproduction preflight on the new machine. The full command sequence, with
the environments, the smoke phase, the preflight, a two-unit science check and
the comparison with the published records, is in
reproduction/README.md. After that sequence, the
complete science phase of each bundle runs with the same interpreter path that
wrote the preflight (PY_MTA and PY_VPS in that sequence):
(cd exec/mta006 && "$PY_MTA" run_extension.py supervise --host mta --phase science --tag rerun --workers 16)
(cd exec/vps005 && "$PY_VPS" run_extension.py supervise --host vps --phase science --tag rerun --workers 2)
python reproduction/compare_extension.py --bundle mta006 --reproduced exec/mta006/outputs/mta/science/rerun
python reproduction/compare_extension.py --bundle vps005 --reproduced exec/vps005/outputs/vps/science/rerunThe mta006 configuration (code/mta006/config/extension.json) specifies eight
conditions and 20 seeds: 2003, 2011, 2017, 2027, 2029, 2039, 2053, 2063, 2069,
2081, 2083, 2087, 2089, 2099, 2111, 2113, 2129, 2131, 2137 and 2141. Its worker
ceiling is 16, and a smaller --workers value is valid. The saved unit
identities record Linux/x86_64, Python 3.12.3, NumPy 2.5.2, pandas 2.3.3, SciPy
1.18.0, scikit-learn 1.7.2 and psutil 7.2.2, and the kit pins the same
versions. expected/mta006/accounting/summary.json records 3,809.60 seconds
from the original launch to completion. The sum of retained fit times is a
different quantity and is not CPU time or total cost. Keep the corrected
explicit-L1 code unchanged.
--host vps selects the five replication seeds 2003, 2011, 2017, 2027 and
2029, which cover 40 condition-seed cells, and the vps worker ceiling is two.
The saved identities record Linux/aarch64, Python 3.12.3, NumPy 2.3.5, pandas
2.2.3, SciPy 1.17.1, scikit-learn 1.8.0 and psutil 7.2.2.
expected/vps005/accounting/summary.json records 6,264.30 seconds, including
an operational interruption and recovery. These five seeds overlap mta006 and
add no independent observations. The excluded mta005 records document the
stopped attempt and are not a rerun target.
Raw public benchmark data are not redistributed. Dry Bean is retrieved from UCI
under DOI 10.24432/C50S4B and checked against the recorded archive and ARFF
hashes before use. Synthetic data are generated by the code in code/.
The files of the current manuscript were first published under
ranker_policy_benchmark/ and now sit at the repository root. Apart from the
three relabelled scripts named under Verifying the bundle, the files listed in
SOURCE_MAP.json are unchanged, and only the paths in the READMEs, the
reproduction scripts and the release maps were updated.
Earlier versions of this repository also held the replication package of an
earlier implementation (replication_package/, together with code/,
data_sample/, docs/, requirements.txt, run_smoke.ps1 and run_all.ps1
at the root). It does not belong to the current manuscript and has been removed
from the current tree. Its files are unchanged in the Git history at commit
e9c2a5c.
Özkan Canay, sole and corresponding author. Department of Information Systems
and Technologies, Faculty of Computer and Information Sciences, Sakarya
University, Esentepe Campus, 54050 Serdivan, Sakarya, Türkiye. Email
canay@sakarya.edu.tr, ORCID
0000-0001-7539-6001.
Source code and execution scripts are available under the MIT License in
LICENSE. Documentation, generated result records, manifests and figures are
available under CC BY 4.0 as specified in LICENSE-CONTENT.md. Rights in
third-party datasets and dependencies remain with their providers.
Please cite the repository with the metadata in CITATION.cff, and name the
commit used when an analysis depends on specific files.