-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.py
86 lines (77 loc) · 2.4 KB
/
test.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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from builders import ErdosRenyi, Barabasi
from Experiment import Experiment
from Estimator import MonteCarlo, Greedy, GreedyRestart, Annealing
config = {
'graph_maker': ErdosRenyi(n=100, p=5.0/100),
'num_trials': 10000,
'filename': 'results/Erdos-Renyi-1e2.tsv',
'estimator_types': [MonteCarlo, Greedy, GreedyRestart, Annealing],
'budgets': [i + 1 for i in range(10)]
}
e = Experiment(**config)
e.run()
config = {
'graph_maker': ErdosRenyi(n=1000, p=5.0/1000),
'num_trials': 10000,
'filename': 'results/Erdos-Renyi-1e3.tsv',
'estimator_types': [MonteCarlo, Greedy, GreedyRestart, Annealing],
'budgets': [10 * (i + 1) for i in range(10)]
}
e = Experiment(**config)
e.run()
config = {
'graph_maker': ErdosRenyi(n=10000, p=5.0/10000),
'num_trials': 10000,
'filename': 'results/Erdos-Renyi-1e4.tsv',
'estimator_types': [MonteCarlo, Greedy, GreedyRestart, Annealing],
'budgets': [100 * (i + 1) for i in range(10)]
}
e = Experiment(**config)
e.run()
config = {
'graph_maker': ErdosRenyi(n=100000, p=5.0/100000),
'num_trials': 10000,
'filename': 'results/Erdos-Renyi-1e5.tsv',
'estimator_types': [MonteCarlo, Greedy, GreedyRestart, Annealing],
'budgets': [1000 * (i + 1) for i in range(10)]
}
e = Experiment(**config)
e.run()
config = {
'graph_maker': Barabasi(n=100, m=2),
'num_trials': 10000,
'filename': 'results/Barabasi-1e2.tsv',
'estimator_types': [MonteCarlo, Greedy, GreedyRestart, Annealing],
'budgets': [i + 1 for i in range(10)]
}
e = Experiment(**config)
e.run()
config = {
'graph_maker': Barabasi(n=1000, m=2),
'num_trials': 10000,
'filename': 'results/Barabasi-1e3.tsv',
'estimator_types': [MonteCarlo, Greedy, GreedyRestart, Annealing],
'budgets': [10 * (i + 1) for i in range(10)]
}
e = Experiment(**config)
e.run()
config = {
'graph_maker': Barabasi(n=10000, m=2),
'num_trials': 10000,
'filename': 'results/Barabasi-1e4.tsv',
'estimator_types': [MonteCarlo, Greedy, GreedyRestart, Annealing],
'budgets': [100 * (i + 1) for i in range(10)]
}
e = Experiment(**config)
e.run()
config = {
'graph_maker': Barabasi(n=100000, m=2),
'num_trials': 10000,
'filename': 'results/Barabasi-1e5.tsv',
'estimator_types': [MonteCarlo, Greedy, GreedyRestart, Annealing],
'budgets': [1000 * (i + 1) for i in range(10)]
}
e = Experiment(**config)
e.run()