Reproducing a paper in Python: a random seed is only the first step
You follow a machine learning or experimental paper, run the code, and the loss curve or the reported metric doesn't match. You move the same script to another machine, and the numbers move again. The first guess is almost always: I forgot to set a random seed. So you add torch.manual_seed(0) , and…
Read the full story at DEV Community — Machine Learning ↗
Timeline · 1 report
- 2026-11-10 14:35 · DEV Community — Machine Learning
Reproducing a paper in Python: a random seed is only the first step