A simple C++ implementation of user-based collaborative filtering for movie rating prediction using the MovieLens 10M dataset.
- Predicts movie ratings for a user based on similar users.
- Calculates rating distance between users.
- Command-line tools for prediction and distance calculation.
- Place
ratings.dat
in the project directory. - Compile:
g++ -o MovieRate MovieRate.cpp common.cpp g++ -o RatingDistance RatingDistance.cpp common.cpp
- Run:
./MovieRate [UserID] [MovieID] ./RatingDistance [UserID1] [UserID2]