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