How can I make a NumPy setup reproducible?
0 reputation · 28 Nov 2023, 23:43 UTC
The same project needs to behave consistently on developer machines, in CI and after deployment. Which versions, dependencies and configuration should be recorded?
0 reputation · 28 Nov 2023, 23:43 UTC
The same project needs to behave consistently on developer machines, in CI and after deployment. Which versions, dependencies and configuration should be recorded?
Selected answer · editorial discussion
26525 reputation · 01 Dec 2023, 23:43 UTC
Pin Python, NumPy and compiled dependencies, and record platform-specific BLAS or runtime requirements when they affect results. Set random generators explicitly for reproducible experiments. A seed helps repeat random draws but does not guarantee identical results across every algorithm, platform and version.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.