Yelp
¶
Yelp(
base_dir: Optional[str] = None,
pre_transform: Optional[Callable] = None,
transform: Optional[Callable] = None,
)
Bases: _GraphSAINTDataset
The Yelp dataset from the "GraphSAINT: Graph Sampling Based Inductive Learning Method" paper, containing customer reviewers and their friendship.
The task is multi-label: node_labels holds 100 binary (float32)
targets per node.
This dataset follows the implementation of PyG (same files, edges and splits).
| #nodes | #edges | #features | #tasks |
|---|---|---|---|
| 716,847 | 13,954,819 | 300 | 100 |
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base_dir
|
Optional[str]
|
Directory where to store dataset files. Default is
in the local directory |
None
|
pre_transform
|
Optional[Callable]
|
A function/transform applied to the graph once, before it is saved. |
None
|
transform
|
Optional[Callable]
|
A function/transform applied to the graph at every access. |
None
|
Source code in mlx_graphs/datasets/large_graph.py
from mlx_graphs.datasets import Yelp · mlx_graphs/datasets/large_graph.py