Skip to content

Commit

Permalink
Update model configs with hyperparameters for saving recommendations …
Browse files Browse the repository at this point in the history
…lists
  • Loading branch information
andreeaiana committed Mar 19, 2024
1 parent eca9f54 commit 1b33d38
Show file tree
Hide file tree
Showing 14 changed files with 56 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configs/model/caum.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,16 @@ outputs:
"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
Expand Down
4 changes: 4 additions & 0 deletions configs/model/cen_news_rec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,16 @@ outputs:
"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
Expand Down
4 changes: 4 additions & 0 deletions configs/model/dkn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,16 @@ outputs:
"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
Expand Down
4 changes: 4 additions & 0 deletions configs/model/lstur.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,16 @@ outputs:
"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
Expand Down
4 changes: 4 additions & 0 deletions configs/model/manner_cr_module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,16 @@ outputs:
"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
Expand Down
4 changes: 4 additions & 0 deletions configs/model/manner_module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@ outputs:
"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: null
scheduler: null
4 changes: 4 additions & 0 deletions configs/model/miner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,16 @@ outputs:
"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
Expand Down
4 changes: 4 additions & 0 deletions configs/model/mins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,16 @@ outputs:
"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
Expand Down
4 changes: 4 additions & 0 deletions configs/model/naml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@ outputs:
"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
Expand Down
4 changes: 4 additions & 0 deletions configs/model/npa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,16 @@ outputs:
"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
Expand Down
4 changes: 4 additions & 0 deletions configs/model/nrms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,16 @@ outputs:
"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
Expand Down
4 changes: 4 additions & 0 deletions configs/model/senti_debias.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ outputs:
"target_sentiments",
"hist_categories",
"hist_sentiments",
"user_ids",
"cand_news_ids",
]

# loss coefficients
Expand All @@ -55,6 +57,8 @@ beta_coefficient: 10
top_k_list: [5, 10]
num_categ_classes: 18
num_sent_classes: 3
save_recs: False
recs_fpath: "${paths.output_dir}/recommendations.json"

optimizer: null

Expand Down
4 changes: 4 additions & 0 deletions configs/model/sentirec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,16 @@ outputs:
"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
Expand Down
4 changes: 4 additions & 0 deletions configs/model/tanr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,16 @@ outputs:
"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
Expand Down

0 comments on commit 1b33d38

Please sign in to comment.