-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
545d255
commit 2d9f8b7
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
Readme | ||
——————— | ||
-------- | ||
|
||
We have written three codes, one for user-based collaborative filtering, second for item-based collaborative filtering and the third for hybrid-based collaborative filtering. | ||
|
||
First, move to the folder and copy the files ratings.csv, toBeRated.csv, users.csv, and movies.csv to the downloaded “Code” folder. Now, enter the commands explained as follows: | ||
|
||
1. User-Based Collaborative Filtering: | ||
|
||
python userBased.py ratings.csv toBeRated.csv cosine jaccard pearson | ||
|
||
After the above command finish executing, it will provide result1.csv as the output file which will have the predicted ratings. Also, rmse_user.txt will be an output which shows the rmse obtained in all the three types of similarity and also shows which one is the best. | ||
|
||
|
||
2. Item-Based Collaborative Filtering: | ||
|
||
python itemBased.py ratings.csv toBeRated.csv cosine jaccard pearson | ||
|
||
After the above command finish executing, it will provide result2.csv as the output file which will have the predicted ratings. Also, rmse_item.txt will be an output which shows the rmse obtained in all the three types of similarity and also shows which one is the best. | ||
|
||
|
||
3. Hybrid-Based Collaborative Filtering: | ||
|
||
python hybrid.py ratings.csv toBeRated.csv users.csv movies.csv cosine jaccard pearson | ||
|
||
After the above command finish executing, it will provide result3.csv as the output file which will have the predicted ratings. Also, rmse_hybrid.txt will be an output which shows the rmse obtained in all the three types of similarity and also shows which one is the best. |