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

Remove torchgeo.datamodules.utils.dataset_split #2005

Merged
merged 5 commits into from
Apr 25, 2024

Conversation

adamjstewart
Copy link
Collaborator

This function was added as a wrapper around torch.utils.data.random_split with support for percentages. However, this feature was added upstream, and the minimum supported version of PyTorch now supports it. This wrapper can now be removed.

There are no backwards incompatible changes since this function was never documented.

@github-actions github-actions bot added testing Continuous integration testing datamodules PyTorch Lightning datamodules labels Apr 17, 2024
@adamjstewart
Copy link
Collaborator Author

Could be made simpler by allowing the user to input lengths directly, so they can choose how to define the split (percentages, numbers, etc.). Wouldn't be backwards compatible, but would also resolve #1289. However, many GeoDataModules already accept a length parameter, so I'm not sure what to call this. Maybe split_lengths?

@adamjstewart
Copy link
Collaborator Author

Let's merge this as is. We can think about renaming (lengths) or adding (random seed) parameters in a separate PR.

@adamjstewart adamjstewart merged commit c2f3bc4 into microsoft:main Apr 25, 2024
16 of 17 checks passed
@adamjstewart adamjstewart deleted the datamodules/split branch April 25, 2024 10:06
@adamjstewart adamjstewart added this to the 0.6.0 milestone Aug 29, 2024
@adamjstewart adamjstewart changed the title Remove torchgeo.datamodules.dataset_split Remove torchgeo.datamodules.utils.dataset_split Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datamodules PyTorch Lightning datamodules testing Continuous integration testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants