Plugin for Flake8 that forbids usage of numpy.random()
pip install flake8-numpy-randomUsing NumPy’s random number generator with multi-process data loading in PyTorch causes identical augmentations unless you specifically set seeds using the worker_init_fn option in the DataLoader. Details - https://tanelp.github.io/posts/a-bug-that-plagues-thousands-of-open-source-ml-projects/
| Error code | Description |
|---|---|
| NPR001 | do not use numpy.random() |
MIT