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

Determinism #308

Open
adamjstewart opened this issue Feb 25, 2024 · 0 comments
Open

Determinism #308

adamjstewart opened this issue Feb 25, 2024 · 0 comments

Comments

@adamjstewart
Copy link
Collaborator

To what extent can R-tree be guaranteed to be deterministic?

We're using R-tree in TorchGeo for ML, where reproducibility of experiments and data splits is very important. Currently, we populate an R-tree index with a list of files, then use index.intersection(index.bounds) to iterate over all files. We've had a number of issues in the past with sets/dicts and want to make sure we're using R-tree correctly as well. By determinism, I mean that given the same random seed, all code reproduces the same results exactly.

As far as I can tell, files are returned in insertion order. Is this behavior guaranteed? Are there any other parts of R-tree that may not be deterministic?

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

1 participant