Download scripts/check_reproducibility.py from Januka2009/INVESTIGA-ES: direct link, hf CLI and curl.
- Browser
- Download file 755 Bytes
-
https://huggingface.co/datasets/Januka2009/INVESTIGA-ES/resolve/main/scripts/check_reproducibility.py
- Command line
-
hf download hf://datasets/Januka2009/INVESTIGA-ES/scripts/check_reproducibility.py
-
curl -L -o check_reproducibility.py https://huggingface.co/datasets/Januka2009/INVESTIGA-ES/resolve/main/scripts/check_reproducibility.py
755 Bytes
| import subprocess,sys | |
| from common import * | |
| paths=sorted((ROOT/'data').glob('*/*.parquet'))+[ROOT/'provenance/lineage.parquet',ROOT/'reports/v4_disposition.parquet'] | |
| before={str(p.relative_to(ROOT)):digest(p.read_bytes()) for p in paths} | |
| subprocess.run([sys.executable,str(ROOT/'scripts/build_v4.py')],check=True) | |
| after={str(p.relative_to(ROOT)):digest(p.read_bytes()) for p in paths} | |
| result={'passed':before==after,'hashes':after,'scope':'canonical Parquet, lineage and v3 disposition; locked installed environment','generation_reproducibility':'literal source snapshots, not a stochastic model API replay'};dump(ROOT/'reports/reproducibility_validation.json',result) | |
| assert result['passed'],'Rebuild drift';print('Rebuild identical:',len(paths),'files') | |