mlx_graphs.datasets.DBLP#
- class mlx_graphs.datasets.DBLP(base_dir: str | None = None, transform: Callable | None = None, pre_transform: Callable | None = None)[source]#
Bases:
Dataset
A subset of the DBLP computer science bibliography website, as collected in the “MAGNN: Metapath Aggregated Graph Neural Network for Heterogeneous Graph Embedding” paper. DBLP is a heterogeneous graph containing four types of entities - authors (4,057 nodes), papers (14,328 nodes), terms (7,723 nodes), and conferences (20 nodes). The authors are divided into four research areas (database, data mining, artificial intelligence, information retrieval). Each author is described by a bag-of-words representation of their paper keywords.
- Parameters:
base_dir (
Optional
[str
]) – directory where the dataset should be saved.transform (
Optional
[Callable
]) – A function/transform that takes in anHeteroGraphData
object and returns a transformed version. The data object will be transformed before every access. (default:None
)pre_transform (
Optional
[Callable
]) – A function/transform that takes in an HeteroGraphData object and returns a transformed version. The data object will be transformed before being saved to disk. (default:None
)