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

Reduce RAM usage of spatial_error_propagation by optimizing subsampling of pairwise distances #672

Merged
merged 2 commits into from
Dec 14, 2024

Conversation

rhugonnet
Copy link
Member

@rhugonnet rhugonnet commented Dec 14, 2024

It was an easy bug fix: moved the subsampling before computing pairwise distances instead of after, which requires using cdist instead of pdist/squareform.

Added new test with large data input, previous ones checking accuracy still passing.

Resolves #590

@rhugonnet rhugonnet merged commit 55bb902 into GlacioHack:main Dec 14, 2024
19 checks passed
@rhugonnet rhugonnet deleted the fix_ram_double_sum_covar branch December 14, 2024 02:33
@rhugonnet
Copy link
Member Author

FYI @adehecq this is resolved (for a future xdem-demo 😉)

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

Successfully merging this pull request may close these issues.

spatialstats.spatial_error_propagation fails with memory error on large rasters for vector area input
1 participant