-
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.
First commit and my first modification
- Loading branch information
0 parents
commit 03b96cb
Showing
15 changed files
with
1,610,848 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Readme | ||
——————— | ||
|
||
I 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. | ||
|
||
Author: Revant Kumar <[email protected]> |
Oops, something went wrong.