-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.py
31 lines (28 loc) · 833 Bytes
/
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
"""Configuration files
"""
class Config():
def __init__(self):
self.epochs = 200
self.epochs_g = 50
self.epochs_d = 100
self.batch_size = 64
self.eta_G = 1e-3 # Learning Rate for generator
self.eta_D = 1e-3 # Learning Rate for discriminator
self.dir_path = "./data/"
self.emb_dim = 5
self.weight_decay = 1e-5
self.weight_decay_g = 1e-5
self.weight_decay_d = 1e-5
self.patience = 300
self.device = "cuda:0"
class BprConfig():
def __init__(self):
self.epochs = 200
self.batch_size = 64
self.eta = 1e-3
self.dir_path = "./data/"
self.emb_dim = 5
self.device = "cuda:0"
self.weight_decay = 1e-5
bpr_config = BprConfig()
irgan_config = Config()