-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrunner.py
67 lines (63 loc) · 1.83 KB
/
runner.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
from runner_helper import Arch, RunConfig, ConfigList, App, Dataset, CachePolicy, TMP_LOG_DIR, run_in_list, SampleType, percent_gen
import os
def tmp_call_back(cfg: RunConfig):
os.system(f"grep -A 4 'average' \"{cfg.get_log_fname()}.log\"")
if __name__ == '__main__':
from sys import argv
do_mock = False
durable_log = True
for arg in argv[1:]:
if arg == '-m' or arg == '--mock':
do_mock = True
elif arg == '-i' or arg == '--interactive':
durable_log = False
run_in_list(ConfigList()
.select('app', [
App.gcn,
# App.graphsage,
# App.pinsage,
]).select('dataset', [
# Dataset.reddit,
# Dataset.products,
Dataset.papers100M,
# Dataset.friendster,
]).select('cache_policy', [
CachePolicy.no_cache,
# CachePolicy.cache_by_degree,
# CachePolicy.cache_by_heuristic,
# CachePolicy.dynamic_cache,
]).select('pipeline', [
False,
# True,
])
# .override_arch(Arch.arch0)
.override('logdir', [TMP_LOG_DIR])
.override('dataset', [
Dataset.papers100M_300,
]).override('sample_type', [
# SampleType.kKHop1,
# SampleType.kWeightedKHop,
SampleType.kDefaultForApp,
]).override('cache_policy', [
# CachePolicy.cache_by_degree,
CachePolicy.cache_by_heuristic,
# CachePolicy.cache_by_presample,
# CachePolicy.cache_by_degree_hop,
# CachePolicy.cache_by_presample_static,
# CachePolicy.cache_by_fake_optimal,
# CachePolicy.cache_by_presample_1,
# CachePolicy.cache_by_presample_2,
]).override('batch_size',[
# 1000,
8000,
]).override('cache_percent', [
# 0.0,
0.01,0.02,0.03,0.04,0.05,0.10,0.15,0.20,0.25,0.30,0.35,0.40,0.45,0.50,
# 0.55, 0.60,
# 1,
])
.conf_list
,do_mock
,durable_log
# , tmp_call_back
)