-
Notifications
You must be signed in to change notification settings - Fork 5
/
run_recbole.py
29 lines (19 loc) · 901 Bytes
/
run_recbole.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# @Time : 2020/7/20
# @Author : sahanlei Mu
# @Email : [email protected]
# UPDATE
# @Time : 2020/10/3, 2020/10/1
# @Author : Yupeng Hou, Zihan Lin
# @Email : [email protected], [email protected]
import argparse
from recbole.quick_start import run_recbole
if __name__ == '__main__':
import sys,os
os.chdir(sys.path[0])
parser = argparse.ArgumentParser()
parser.add_argument('--model', '-m', type=str, default='FairGo_GCN', help='name of models')
parser.add_argument('--dataset', '-d', type=str, default='ml-1M', help='name of datasets')
parser.add_argument('--config_files', '-c', type=str, default='test.yaml', help='config files')
args, _ = parser.parse_known_args()
config_file_list = args.config_files.strip().split(' ') if args.config_files else None
run_recbole(model=args.model, dataset=args.dataset, config_file_list=config_file_list)