Lakshmi Udupa (800956319)
Shreyas Subramanya Bhat (800958406)
Cosine-similarity method:
ratings2.csv
Alternating least squares method:
ratings_als.csv
metadata.csv
Single_user_rating.txt
-
Place the input file in the hdfs
sudo hdfs dfs -put <file_name> /user/root/
-
To run the recommenderEngine.py
spark-submit --driver-memory 2g recommenderEngine.py ratings2.csv 9994 0439893577 > test.out
-
To run the cos_similarity.py
spark-submit --driver-memory 2g cos_similarity.py ratings.csv meta_data.csv 5594 > output.out
-
Place the input file in the hdfs
sudo hdfs dfs -put <file_name> /user/root/
-
To run the recommenderEngine.py
spark-submit --driver-memory 2g recommenderEngine_ALS.py new_data.csv meta_data.csv personalRatings.txt > output.out