-
Notifications
You must be signed in to change notification settings - Fork 8
/
dkn.yaml
52 lines (45 loc) · 1022 Bytes
/
dkn.yaml
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
44
45
46
47
48
49
50
51
52
_target_: newsreclib.models.general_rec.dkn_module.DKNModule
# training strategy
dual_loss_training: False
dual_loss_coef: null
loss: "cross_entropy_loss"
late_fusion: False
temperature: None
# news encoder
pretrained_word_embeddings_path: null
pretrained_entity_embeddings_path: null
text_embed_dim: 300
entity_embed_dim: 100
num_filters: 100
window_sizes: [1, 2, 3, 4]
use_context: True
# user encoder
hidden_dim_dnn: 16
# outputs
outputs:
train: ["preds", "targets", "cand_news_size"]
val: ["preds", "targets", "cand_news_size"]
test:
[
"preds",
"targets",
"cand_news_size",
"hist_news_size",
"target_categories",
"target_sentiments",
"hist_categories",
"hist_sentiments",
"user_ids",
"cand_news_ids",
]
# evaluation
top_k_list: [5, 10]
num_categ_classes: 18
num_sent_classes: 3
save_recs: False
recs_fpath: "${paths.output_dir}/recommendations.json"
optimizer:
_target_: torch.optim.Adam
_partial_: true
lr: 0.0001
scheduler: null