harbor run -t LiteCoder/pyspark-movie-recommenderharbor download LiteCoder/pyspark-movie-recommenderBuild a collaborative-filtering movie recommendation system using PySpark MLlib's ALS algorithm. Process MovieLens dataset files to generate personalized top-5 movie recommendations for all users.
movies.csv and ratings.csv from the archive/app/recommendations.parquet (single Parquet file)movies.csv (comma-separated):
movieId, title, genres1,Toy Story (1995),Adventure|Animation|Children|Comedy|Fantasyratings.csv (comma-separated):
userId, movieId, rating, timestamp1,1,4.0,964982703The output Parquet file at /app/recommendations.parquet must contain:
Schema:
userId: integer
recommendations: array<struct<movieId:integer, title:string, rating:float>>
Requirements:
title field must include the full movie title from movies.csvrating field represents the predicted rating from the ALS modelrank=10, maxIter=10, regParam=0.01/app/als_model