forked from aHuiWang/CIKM2020-S3Rec
-
Notifications
You must be signed in to change notification settings - Fork 33
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
0 parents
commit e6c774d
Showing
21 changed files
with
110,860 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,46 @@ | ||
# NOTE | ||
In the PAPER, we pair the ground-truth item | ||
with 99 randomly sampled negative items that the user | ||
has not interacted with, and report the results of | ||
HR@{1, 5, 10}, NDCG@{5, 10} and MRR. | ||
|
||
In the repo, we rank the ground-truth item with ALL the items. | ||
We omit the FM and AutoInt because they need | ||
enumerate all user-item pairs, which take a very long time. | ||
The results are shown in the following pic(all_rank.PNG). | ||
|
||
Performance comparison of different methods on six datasets. The best performance and the second best performance | ||
methods are denoted in bold and underlined fonts respectively. | ||
|
||
![avatar](all_rank.PNG) | ||
|
||
### requirements | ||
```shell script | ||
pip install -r requirements.txt | ||
``` | ||
|
||
### data preprocess | ||
```shell script | ||
./data/data_process.py | ||
|
||
data-name.txt | ||
one user per line | ||
user_1 item_1 item_2 ... | ||
user_2 item_1 item_2 ... | ||
|
||
data-name_item2attributes.json | ||
{item_1:[attr, ...], item_2:[attr, ...], ... } | ||
``` | ||
|
||
### pretrain | ||
```shell script | ||
python run_pretrain.py \ | ||
--data_name Beauty | ||
``` | ||
|
||
### finetune | ||
```shell script | ||
python run_finetune.py \ | ||
--data_name Beauty \ | ||
--ckp 100 | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.