Skip to content

Commit 64cf0b4

Browse files
Updated README
1 parent 99199bc commit 64cf0b4

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

README.txt

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ Once you've synced with GitHub, the folder should contain the source code for Po
2020
perl install.pl [abs_path]
2121
```
2222

23-
[abs_path] is the absolute path to the directory where you want PostgreSQL installed. The directory should exist before running this script.
23+
[abs_path] is the absolute path to the directory where you want PostgreSQL installed. The directory should exist before running this script. This will also create a folder "data" in the PostgreSQL folder; this is where the database will be located.
2424

25-
2. Run the database server script pgstart.pl.
25+
2. Run the database server script pgbackend.pl.
2626

2727
```
2828
perl pgbackend.pl
2929
```
3030

31-
The install.pl script stores the install path, so there shouldn't be any need to specify it.
31+
The install.pl script stores the install path in a separate file, so there shouldn't be any need to specify it.
3232

33-
3. In a second terminal, run the database interaction script dbstart.pl.
33+
3. In a second terminal, run the database interaction script pgfrontend.pl.
3434

3535
```
3636
perl pgfrontend.pl [db_name] [server_host]
@@ -68,7 +68,7 @@ perl clean.pl [db_name] [server_host]
6868
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.
6969

7070
### Recommendation Query
71-
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 the rating prediceted using Item-Item Collaborative filtering (applying cosine similarity measure) algorithm to user 1, the user writes the following SQL:
71+
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:
7272

7373
```
7474
SELECT * FROM MovieRatings R
@@ -79,18 +79,23 @@ OREDER BY R.ratingval
7979
LIMIT 10
8080
```
8181

82+
The available methods are ItemCosCF, ItemPearCF, UserCosCF, UserPearCF, and SVD. Note that if you do not specify which user(s) you want recommendations for, it will generate recommendations for all users, which can take an extremely long time to finish.
83+
8284
### Materializing Recommenders
8385
Users may create recommenders apriori so that when a recommendation query is issued may be answer with less latency.
8486

8587
```
86-
CREATE RECOMMENDER ON MovieRatings
88+
CREATE RECOMMENDER MovieRec ON MovieRatings
8789
USERS FROM userid
8890
ITEMS FROM itemsid
8991
EVENTS FROM ratingid
9092
USING ItemCosCF
91-
9293
```
94+
Similarly, materialized recommenders can be removed with the following command:
9395

96+
```
97+
DROP RECOMMENDER MovieRec
98+
```
9499

95100
### Support or Contact
96101
Having trouble with RecDB ? contact sarwat@cs.umn.edu and we’ll help you sort it out.

0 commit comments

Comments
 (0)