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

feat: sample add --poisson sampling method; refactored indexed sampling method so it also uses less memory #2507

Merged
merged 2 commits into from
Feb 7, 2025

Conversation

jqnatividad
Copy link
Collaborator

so we should be able to sample from arbitrarily large, "real-life" CSV files.

The memory used by sample is just proportional to the requested sample size.

…thods are now more memory efficient

only using memory proportional to sample size, not the total size of the input CSV
…est results

to account for the more memory efficient indexed sampling algorithm that now doesn't require creating a Vec of all the index pointers of an input CSV
@jqnatividad jqnatividad merged commit 39c3279 into master Feb 7, 2025
13 checks passed
@jqnatividad jqnatividad deleted the sample-poisson-constant-memory branch February 7, 2025 22:11
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.

1 participant