torch_geometric.datasets.AmazonProducts
- class AmazonProducts(root: str, transform: Optional[Callable] = None, pre_transform: Optional[Callable] = None, force_reload: bool = False)[source]
Bases:
InMemoryDataset
The Amazon dataset from the “GraphSAINT: Graph Sampling Based Inductive Learning Method” paper, containing products and its categories.
- Parameters:
root (
str
) – Root directory where the dataset should be saved.transform (
Optional
[Callable
], default:None
) – A function/transform that takes in antorch_geometric.data.Data
object and returns a transformed version. The data object will be transformed before every access.pre_transform (
Optional
[Callable
], default:None
) – A function/transform that takes in atorch_geometric.data.Data
object and returns a transformed version. The data object will be transformed before being saved to disk.force_reload (
bool
, default:False
) – Whether to re-process the dataset.
STATS:
#nodes
#edges
#features
#classes
1,569,960
264,339,468
200
107