MovieLens100K
¶
MovieLens100K(
base_dir: str,
transform: Optional[Callable] = None,
pre_transform: Optional[Callable] = None,
)
Bases: HeteroDataset
The MovieLens 100K heterogeneous rating dataset, assembled by GroupLens Research from the MovieLens web site, consisting of movies (1,682 nodes) and users (943 nodes) with 100K ratings between them. User ratings for movies are available as ground truth labels. Features of users and movies are encoded according to the "Inductive Matrix Completion Based on Graph Neural Networks" paper.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base_dir
|
str
|
Directory where to store dataset files. |
required |
transform
|
callable
|
A function/transform that takes in an
|
None
|
pre_transform
|
callable
|
A function/transform that takes in
an |
None
|
Source code in mlx_graphs/datasets/movie_lens_100k.py
from mlx_graphs.datasets import MovieLens100K · mlx_graphs/datasets/movie_lens_100k.py