mlx_graphs.loaders.Dataloader#
- class mlx_graphs.loaders.Dataloader(dataset: Dataset | Sequence[GraphData], batch_size: int = 1, shuffle: bool = False)[source]#
Default data loader to batch and iterate over multiple graphs.
- Parameters:
- __init__(dataset: Dataset | Sequence[GraphData], batch_size: int = 1, shuffle: bool = False)[source]#
Methods
__init__
(dataset[, batch_size, shuffle])