Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: rng_seed #81

Open
Robinlovelace opened this issue Sep 24, 2024 · 2 comments
Open

Documentation: rng_seed #81

Robinlovelace opened this issue Sep 24, 2024 · 2 comments

Comments

@Robinlovelace
Copy link
Collaborator

Just discovered this by searching for 'rng' in the repo.

I tried to generate reproducible networks in acteng/netgen@f31cf84 but, having re-run

sudo docker run -v $(pwd):/app ghcr.io/urban-analytics-technology-platform/od2net:main /app/config.json

and comparing the results with

diff /tmp/output.geojson output/output.geojson

After copying the previous version it seems there are still differences.

Probably worth documenting and happy to give it a go, after I figure it out myself.

@dabreegster
Copy link
Collaborator

If you don't pass any value, it defaults to a fixed value of 42. If you run on the same input twice, you should get the same output. The only difference between the two runs is some caching in the intermediate directory, but it shouldn't cause any changes

@Robinlovelace
Copy link
Collaborator Author

Robinlovelace commented Sep 24, 2024

Oh! I could have sworn outputs were changing from one run to another, but maybe I'm changing something..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants