-
Notifications
You must be signed in to change notification settings - Fork 37
/
setup.py
81 lines (70 loc) · 1.87 KB
/
setup.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
from opt import args
def setup_args(dataset_name="cora"):
args.dataset = dataset_name
args.device = "cuda:0"
args.acc = args.nmi = args.ari = args.f1 = 0
if args.dataset == 'cora':
args.t = 2
args.lr = 1e-3
args.n_input = 500
args.dims = 1500
args.activate = 'ident'
args.tao = 0.9
args.beta = 1
elif args.dataset == 'citeseer':
args.t = 2
args.lr = 1e-3
args.n_input = 500
args.dims = 1500
args.activate = 'sigmoid'
args.tao = 0.3
args.beta = 2
elif args.dataset == 'amap':
args.t = 3
args.lr = 1e-5
args.n_input = -1
args.dims = 500
args.activate = 'ident'
args.tao = 0.9
args.beta = 3
elif args.dataset == 'bat':
args.t = 6
args.lr = 1e-3
args.n_input = -1
args.dims = 1500
args.activate = 'ident'
args.tao = 0.3
args.beta = 5
elif args.dataset == 'eat':
args.t = 6
args.lr = 1e-4
args.n_input = -1
args.dims = 1500
args.activate = 'ident'
args.tao = 0.7
args.beta = 5
elif args.dataset == 'uat':
args.t = 6
args.lr = 1e-4
args.n_input = -1
args.dims = 500
args.activate = 'sigmoid'
args.tao = 0.7
args.beta = 5
# other new datasets
else:
args.t = 2
args.lr = 1e-3
args.n_input = 500
args.dims = 1500
args.activate = 'ident'
args.tao = 0.9
args.beta = 1
print("---------------------")
print("runs: {}".format(args.runs))
print("dataset: {}".format(args.dataset))
print("confidence: {}".format(args.tao))
print("focusing factor: {}".format(args.beta))
print("learning rate: {}".format(args.lr))
print("---------------------")
return args