-
Notifications
You must be signed in to change notification settings - Fork 410
Expand file tree
/
Copy pathsnippet.py
More file actions
14 lines (12 loc) · 759 Bytes
/
snippet.py
File metadata and controls
14 lines (12 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#A snippet showing how to directly run algorithms in QRec
from QRec import QRec #need to be modified according to your path
from util.config import ModelConf #need to be modified according to your path
#-----------------------------------------------------------------------------------
#create your own config file by following the file format in the directory of config
#-----------------------------------------------------------------------------------
config = ModelConf("/home/xxx/algor_name.conf")
rec = QRec(config)
rec.execute()
#-----------------------------------------------------------------------------------
#your own codes to use the recommendation results
#-----------------------------------------------------------------------------------