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 (3)

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 ⓘ
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 ⓘ
torch.utils.data.Sampler ⓘ
definedInLanguage Python ⓘ
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 ⓘ
license BSD-style (via PyTorch) ⓘ
partOf PyTorch ⓘ
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 ⓘ

How these facts were elicited

Referenced by (3)

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

torchtext → implements → torch.utils.data.Dataset ⓘ
subject linked to: torchtext (ecosystem)
torch.utils.data.Dataset → baseClassFor → torch.utils.data.ConcatDataset ⓘ
linked to: torch.utils.data.Dataset
torch.utils.data.Dataset → introducedBy → PyTorch data API ⓘ
linked to: torch.utils.data.Dataset