torch.utils.data.Dataset

E431012

`torch.utils.data.Dataset` is a core PyTorch abstraction that defines the interface for custom data loading, enabling indexed access to samples and integration with data loaders for efficient batching and shuffling.

All labels observed (1)

Label Occurrences
torch.utils.data.Dataset canonical 1

How this entity was disambiguated

Statements (46)

Predicate Object
instanceOf PyTorch class
data abstraction
allows lazy loading of samples
on-the-fly data preprocessing
baseClassFor torch.utils.data.ConcatDataset NERFINISHED
torch.utils.data.IterableDataset
torch.utils.data.Subset
torch.utils.data.TensorDataset
torchvision.datasets.VisionDataset
belongsTo deep learning ecosystem
canBeWrappedBy torch.utils.data.DataLoader
category map-style dataset abstraction
compatibleWith torch.utils.data.BatchSampler NERFINISHED
torch.utils.data.Sampler
definedInLanguage Python NERFINISHED
designGoal decouple data loading from model definition
support large datasets that do not fit in memory
documentedAt https://pytorch.org/docs/stable/data.html#torch.utils.data.Dataset
enables custom sampling strategies via Sampler
deterministic data ordering when needed
efficient batching
parallel data loading
shuffling of data
introducedBy PyTorch data API NERFINISHED
license BSD-style (via PyTorch)
partOf PyTorch NERFINISHED
torch.utils.data module
pattern abstract base class pattern
providesInterfaceFor custom datasets
data loading
requiresImplementationOf __getitem__
__len__
supports __getitem__ method
__len__ method
arbitrary Python objects as samples
indexed access to samples
typicalReturnTypeOfGetItem (sample, target) tuple
usedBy production ML systems
research codebases
usedFor reinforcement learning datasets
supervised learning datasets
unsupervised learning datasets
usedIn evaluation loops
inference pipelines
training loops
usedWith torch.utils.data.DataLoader NERFINISHED

How these facts were elicited

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.

torchtext (ecosystem) implements torch.utils.data.Dataset
subject surface form: torchtext