Subset๏
- class dgl.data.utils.Subset(dataset, indices)[source]๏
Bases:
object
Subset of a dataset at specified indices
Code adapted from PyTorch.
- Parameters:
dataset โ dataset[i] should return the ith datapoint
indices (list) โ List of datapoint indices to construct the subset