Skip to content

Commit e2b4c09

Browse files
author
Mohamed Sarwat
committed
Update README.md
1 parent c24d6fc commit e2b4c09

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ perl scripts/clean.pl [db_name] [server_host]
7373
## How RecDB Works
7474

7575
### Loading Data
76-
We provide the MovieLens data to build a "Hello-World" movie recommendation application using RecDB. You can load the data using the sql script called "initmovielens1mdatabase.sql" stored in "./PostgreSQL" directory. We provide the dataset at "./PostgreSQL/moviedata / MovieLens1M/" directory. For instance, the ratings table may have a schema as follows:
76+
We provide the MovieLens data to build a "Hello-World" movie recommendation application using RecDB. You can load the data using the sql script called "initmovielens1mdatabase.sql" stored in "./PostgreSQL" directory. We provide the dataset at "./PostgreSQL/moviedata / MovieLens1M/" directory. For instance, the ratings (i.e., ml_ratings) table may have a schema as follows:
7777

7878
```
7979
+-----------------------------+
@@ -85,7 +85,7 @@ We provide the MovieLens data to build a "Hello-World" movie recommendation appl
8585
Users may create recommenders apriori so that when a recommendation query is issued may be answer with less latency. The user needs to specify the ratings table in the ON clause and also specify where the user, item, and rating value columns are in that table. Moreover, the user has to designate the recommendation algorithm to be used to predict item ratings in the USING clause.
8686

8787
```
88-
CREATE RECOMMENDER MovieRec ON MovieRatings
88+
CREATE RECOMMENDER MovieRec ON ml_ratings
8989
USERS FROM userid
9090
ITEMS FROM itemid
9191
EVENTS FROM ratingval
@@ -116,10 +116,10 @@ Note that if you query a materialized recommender, the three columns listed abov
116116

117117

118118
### Recommendation Query
119-
In the recommendation query, the user needs to specify the ratings table and also specify where the user, item, and rating value columns are in that table. Moreover, the user has to designate the recommendation algorithm to be used to predict item ratings. For example, if MovieRatings(userid,itemid,ratingval) represents the ratings table in a movie recommendation application, then to recommend top-10 movies based on the rating predicted using Item-Item Collaborative filtering (applying cosine similarity measure) algorithm to user 1, the user writes the following SQL:
119+
In the recommendation query, the user needs to specify the ratings table and also specify where the user, item, and rating value columns are in that table. Moreover, the user has to designate the recommendation algorithm to be used to predict item ratings. For example, if ml_ratings(userid,itemid,ratingval) represents the ratings table in a movie recommendation application, then to recommend top-10 movies based on the rating predicted using Item-Item Collaborative filtering (applying cosine similarity measure) algorithm to user 1, the user writes the following SQL:
120120

121121
```
122-
SELECT * FROM MovieRatings R
122+
SELECT * FROM ml_ratings R
123123
RECOMMEND R.itemid TO R.userid ON R.ratingval
124124
USING ItemCosCF
125125
WHERE R.userid = 1
@@ -140,7 +140,7 @@ In order to do that, the query joins the recommendation with the Movies table an
140140

141141

142142
```
143-
SELECT * FROM MovieRatings R, Movies M
143+
SELECT * FROM ml_ratings R, Movies M
144144
RECOMMEND R.itemid TO R.userid ON R.ratingval
145145
USING ItemCosCF
146146
WHERE R.userid = 1 AND M.movieid = R.itemid AND M.genre LIKE '%Comedy%'

0 commit comments

Comments
 (0)