-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.py
73 lines (71 loc) · 1.87 KB
/
config.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Copyright (c) 2020-present, Royal Bank of Canada.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
# ------------------------- PATH -----------------------------
ROOT_DIR = "."
DATA_DIR = "%s/data" % ROOT_DIR
# ------------------------- DATA -----------------------------
CONFIG = {}
CONFIG["yelp"] = {
"ref0": "yelp_all_model_prediction_ref0.csv",
"ref1": "yelp_all_model_prediction_ref1.csv",
"label": True,
"params": {
"log_interval": 2000,
"num_epochs": 100,
"enc_lr": 1e-3,
"dec_lr": 1.0,
"warm_up": 10,
"kl_start": 0.1,
"beta1": 0.35,
"beta2": 0.2,
"srec_weight": 1.0,
"reg_weight": 1.0,
"ic_weight": 0.0,
"aggressive": False,
"vae_params": {
"lstm_ni": 256,
"lstm_nh": 1024,
"lstm_nz": 64,
"mlp_nz": 16,
"dec_ni": 128,
"dec_nh": 1024,
"dec_dropout_in": 0.5,
"dec_dropout_out": 0.5,
"n_vars": 3,
}
}
}
CONFIG["amazon"] = {
"ref0": "amazon_all_model_prediction_0.csv",
"ref1": "amazon_all_model_prediction_1.csv",
"label": True,
"params": {
"log_interval": 2000,
"num_epochs": 100,
"enc_lr": 1e-3,
"dec_lr": 1.0,
"warm_up": 10,
"kl_start": 0.1,
"beta1": 0.35,
"beta2": 0.2,
"srec_weight": 1.0,
"reg_weight": 1.0,
"ic_weight": 0.0,
"aggressive": False,
"vae_params": {
"lstm_ni": 256,
"lstm_nh": 1024,
"lstm_nz": 64,
"mlp_nz": 16,
"dec_ni": 128,
"dec_nh": 1024,
"dec_dropout_in": 0.5,
"dec_dropout_out": 0.5,
"n_vars": 3,
}
}
}