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

Add Dataset input support for fit_model() #26

Merged
merged 6 commits into from
Dec 26, 2024
Merged

Add Dataset input support for fit_model() #26

merged 6 commits into from
Dec 26, 2024

Conversation

nanxstats
Copy link
Owner

Closes #23

This PR updated fit_model() to support using PyTorch Dataset as input, besides the current in-memory PyTorch tensors. This makes it easy to train on larger than (CPU) memory data that can't be loaded into memory entirely.

Adds a simple wrapper NumpyDiskDataset class to read numpy document-term matrices from disk.

Also fixed the formatting of a few docstring details so that the mkdocs pages render correctly.

@nanxstats nanxstats merged commit 6c12999 into main Dec 26, 2024
4 checks passed
@nanxstats nanxstats deleted the dataset branch December 26, 2024 04:57
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.

Support input data that don't fit in memory
1 participant