-
Notifications
You must be signed in to change notification settings - Fork 0
/
global_config.py
86 lines (82 loc) · 1.73 KB
/
global_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
74
75
76
77
78
79
80
81
82
83
84
85
86
"""
The collection of global configurations
"""
CONFIG = {
'DATASETS': [
'amazon_books_60core_kg',
'mind',
'movielens',
'movielens_1m'
],
'MODELS': [
# General Recommendation
'ItemKNN',
'Pop',
'Random',
'SimpleX',
# Matrix fact & Linear
'ADMMSLIM', # NOT_EXEC
'BPR',
'DMF',
'ENMF',
'FISM',
'NCEPLRec',
'SLIMElastic',
# Deep Learning-based
'CDAE',
'ConvNCF', # NOT_EXEC
'DiffRec',
'EASE',
'GCMC',
'LDiffRec',
'MacridVAE',
'MultiDAE',
'MultiVAE',
'NAIS',
'NeuMF',
'NGCF',
'NNCF', # NOT_EXEC
'LightGCN',
'RaCT', # NOT_EXEC
'RecVAE',
# Graph-based
'DGCF',
'LINE',
'NCL',
'SGL',
'SpectralCF',
# Knowledge-aware
'CKE',
'CFKG',
'KGAT', # NOT_EXEC
'KGCN',
'KGIN',
'KGNNLS',
'KTUP',
'MCCLK', # NOT_EXEC
'MKR',
'RippleNet'
],
'LOG_FILE': 'log/carbon_tuning.log',
'LOG_FILE_DEFAULT': 'log/carbon_default.log',
'DATASET_PATH': 'data/',
'RESULT_PATH': 'results/',
'RESULT_PATH_SHARED': 'results_shared/',
'EMISSIONS_FILE': '/emissions.csv',
'METRICS_FILE': '/metrics.csv',
'PARAMS_FILE': '/params.csv',
'STATIC_CONFIG_FILE': 'src/config/_params.yaml',
'HP_CONFIG_PATH': 'src/config/hyperparam/',
'COUNTER': 1,
'DATASET_FILE': 'notebooks/data/dataset.csv'
}
def get_global_config():
"""
The getter method
"""
return CONFIG
def set_global_config(key, value):
"""
The setter method
"""
CONFIG.update({key: value})