IMDB
¶
IMDB(
base_dir: Optional[str] = None,
transform: Optional[Callable] = None,
pre_transform: Optional[Callable] = None,
)
Bases: HeteroDataset
A subset of the Internet Movie Database (IMDB), as collected in the "MAGNN: Metapath Aggregated Graph Neural Network for Heterogeneous Graph Embedding" paper. IMDB is a heterogeneous graph containing three types of entities - movies (4,278 nodes), actors (5,257 nodes), and directors (2,081 nodes). The movies are divided into three classes (action, comedy, drama) according to their genre. Movie features correspond to elements of a bag-of-words representation of its plot keywords.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base_dir
|
Optional[str]
|
directory where the dataset should be saved. |
None
|
transform
|
Optional[Callable]
|
A function/transform that takes in an
|
None
|
pre_transform
|
Optional[Callable]
|
A function/transform that takes in
an |
None
|
Source code in mlx_graphs/datasets/imdb.py
from mlx_graphs.datasets import IMDB · mlx_graphs/datasets/imdb.py