Catalog / Tabular
MovieLens (1998)
Millions of 0.5–5 star movie ratings from the MovieLens site, the classic recommender dataset.
Why it matters
For two decades, the default dataset for recommender systems. Each row is one (user, movie, rating) triple, so the data is a huge, mostly empty matrix. The task is to fill in the gaps: collaborative filtering, matrix factorization, then neural recommenders. The ratings come from a real research site that people used to get movie suggestions, which made it realistic and, unlike commercial data, freely shareable.
Get the data
# pip install -U huggingface_hub
hf download ashraq/movielens_ratings --repo-type dataset \
--local-dir movielensfrom datasets import load_dataset # pip install datasets
ds = load_dataset("ashraq/movielens_ratings")
print(ds)import polars as pl
df = pl.read_parquet("hf://datasets/ashraq/movielens_ratings@~parquet/default/validation/*.parquet")
print(df.shape)This is a community copy of about 1M ratings with titles and poster links. The official releases (100K to 32M) are zip files on the GroupLens site.
- Year
- 1998
- Creators
- GroupLens Research (University of Minnesota)
- Task
- Recommendation (predict how a user rates a movie)
- Size
- Versions from 100k to 32M ratings; the copy sampled here has ~1M
- Splits
- train 891,382 · validation 99,043
- Input
- User id, movie id (with title and genres)
- Labels
- Rating, 0.5–5 stars
- License
- GroupLens research license (non-commercial use)
- Paper
- The MovieLens Datasets: History and Context
Samples
| user_id | movie_id | title | genres | rating |
|---|---|---|---|---|
| 42486 | 343 | Crystal Fairy & the Magical Cactus and 2012 (2013) | Adventure|Comedy | 3 |
| 30441 | 1844 | Insurgent (2015) | Action|Sci-Fi|Thriller | 0.5 |
| 10801 | 6119 | La La Land (2016) | Comedy|Drama|Romance | 4 |
| 16037 | 739 | Gone Girl (2014) | Drama|Thriller | 5 |
| 42432 | 663 | Lucy (2014) | Action|Sci-Fi | 1.5 |
| 39680 | 12462 | Bird Box (2018) | Drama|Sci-Fi|Thriller | 1.5 |
| 26878 | 759 | Guardians of the Galaxy (2014) | Action|Adventure|Sci-Fi | 4.5 |
| 16977 | 3986 | Nocturnal Animals | Drama|Thriller | 4.5 |
| 15108 | 14381 | Anna (2019) | Action|Thriller | 1.5 |
| 37234 | 65 | Paranormal Activity 4 (2012) | Horror|IMAX | 0.5 |
| 22975 | 893 | Annabelle (2014) | Horror | 3.5 |
| 31265 | 2966 | Tangerine (2015) | Comedy|Drama | 3.5 |
| 35025 | 704 | 22 Jump Street (2014) | Action|Comedy|Crime | 5 |
| 5779 | 1844 | Insurgent (2015) | Action|Sci-Fi|Thriller | 4.5 |
| 31447 | 1445 | The Gambler (2014) | Crime|Drama|Thriller | 3 |
| 32381 | 5946 | Arrival (2016) | Sci-Fi | 3.5 |
∅ = missing value
What one record actually looks like (raw JSON, row 66351)
{
"genres": "Adventure|Comedy",
"imdbId": "tt2332579",
"movie_id": 343,
"posters": "https://m.media-amazon.com/images/M/MV5BMTk3Mjk5NjUxNF5BMl5BanBnXkFtZTcwMTk3OTA4OQ@@._V1_SX300.jpg",
"rating": 3,
"title": "Crystal Fairy & the Magical Cactus and 2012 (2013)",
"tmdbId": "157409",
"user_id": 42486
}Media fields point at a local copy; on Hugging Face they are bytes in a Parquet file.
Sampled 2026-11-07 from ashraq/movielens_ratings at revision a1c7c33
Worth knowing
- The matrix is very sparse. MovieLens 25M has 25 million ratings from 162k users on 62k movies, so about 0.25% of the cells are filled.
- Every user in the standard releases rated at least 20 movies; less active users were left out.
- Main releases: 100K (1998), 1M (2003), 10M (2009), 20M (2015), 25M (2019), 32M (2024). 100K and 1M use whole stars; half-star ratings appear from 10M on.
- The Netflix Prize (2006–2009) used much bigger proprietary data, but MovieLens is what most papers can actually share and reproduce.
Related datasets
- Netflix Prize: 2006, 100M ratings and a $1M prizeen.wikipedia.org ↗
- MovieLens 100K: 1998, the original release, with user demographicsHugging Face ↗