Get Started
Advanced Materials
API Reference
Notes
Misc
dgl.data.utils.
Subset
Bases: object
object
Subset of a dataset at specified indices
Code adapted from PyTorch.
dataset – dataset[i] should return the ith datapoint
indices (list) – List of datapoint indices to construct the subset
__getitem__
Get the datapoint indexed by item
datapoint
tuple
__len__
Get subset size
Number of datapoints in the subset
int