-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_yahoo_template.py
43 lines (43 loc) · 1.08 KB
/
config_yahoo_template.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
TEMPLATE = '''experiment:
backend: pytorch
data_config:
strategy: fixed
train_path: ../data/{0}/train.tsv
validation_path: ../data/{0}/val.tsv
test_path: ../data/{0}/test.tsv
side_information:
- dataloader: KGTORETSVLoader
kg: ../data/{0}/kgtore/kg.tsv
dataset: yahoo_movies
top_k: 10
evaluation:
cutoffs: [10]
simple_metrics: [nDCGRendle2020]
gpu: 0
external_models_path: ../external/models/__init__.py
models:
external.KGUF:
meta:
hyper_max_evals: 20
hyper_opt_alg: tpe
verbose: True
save_recs: False
validation_rate: 1
validation_metric: nDCGRendle2020@10
batch_size: 256
lr: [ loguniform, -9.721165996, -5.11599581 ]
elr: [ loguniform, -8.11728083, -3.506557897 ]
l_w: [ loguniform, -8.11728083, -3.506557897 ]
alpha: {alpha}
epochs: 100
factors: 64
n_layers: 3
npr: 1
loader: KGTORETSVLoader
seed: 123
early_stopping:
patience: 5
mode: auto
monitor: nDCGRendle2020@10
verbose: True
'''