-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.py
29 lines (21 loc) · 865 Bytes
/
const.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
import inspect
DEBUG = True
DATA_DIR = "/scratch/work/xiaoh1/data/signed-local-community/"
TMP_DIR = "/scratch/work/xiaoh1/data/signed-local-community/tmp"
class DetectionMethods:
SWEEP_ON_TRUE = 'sweep_on_true'
PR_ON_POS = 'pagerank_on_pos_graph'
JUMPING_RW = 'jumping_pagerank'
attrs = inspect.getmembers(DetectionMethods, lambda a: not(inspect.isroutine(a)))
ALL_DETECTION_METHODS = tuple([a[1]
for a in attrs
if not(a[0].startswith('__') and a[0].endswith('__'))])
DB_CONNECTION_STRING = 'dbname=postgres user=xiaoh1 host=10.10.254.21'
ALL_GRAPHS_AND_NUM_NODES = [
# ('graphs/tribe.pkl', 16),
('graphs/cloister.pkl', 18),
# ('graphs/congress.pkl', 219),
# ('graphs/bitcoin.pkl', 5881),
# ('graphs/thesaurus.pkl', 15670),
('graphs/slashdot1.pkl', 77268)
]