-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathload_old_bootstrap_experiments.py
More file actions
122 lines (116 loc) · 3.92 KB
/
load_old_bootstrap_experiments.py
File metadata and controls
122 lines (116 loc) · 3.92 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
import pickle
def load_old_bootstrap_experiments05_1():
save_path = (
"char/old_char/BS26w60wk50MBret0con0.0W100ste200rewsqrtsme1ID1/"
)
counts_windows_boot = []
res = pickle.load(open(save_path + "res.pickle", "rb"))
counts_windows_boot += res["counts_windows_boot"]
# print("found boostraps: ", len(counts_windows_boot))
for i in range(46):
res = pickle.load(
open(
"char/old_char/BS26w60wk50MBret0con0.0W100ste200rewsqrtsme1ID0/"
+ "res{0:04d}.pickle".format(i),
"rb",
)
)
counts_windows_boot += res["counts_windows_boot"]
for i in range(40):
res = pickle.load(
open(
"char/old_char/BS26w60wk50MBret0con0.0W100ste200rewsqrtsme1ID1/"
+ "res{0:04d}.pickle".format(i),
"rb",
)
)
counts_windows_boot += res["counts_windows_boot"]
for i in range(37):
res = pickle.load(
open(
"char/old_char/BS26w60wk50MBret0con0.0W100ste200rewsqrtsme1ID2/"
+ "res{0:04d}.pickle".format(i),
"rb",
)
)
counts_windows_boot += res["counts_windows_boot"]
for i in range(44):
res = pickle.load(
open(
"char/old_char/BS26w60wk50MBret0con0.0W100ste200rewsqrtsme1ID3/"
+ "res{0:04d}.pickle".format(i),
"rb",
)
)
counts_windows_boot += res["counts_windows_boot"]
for i in range(18):
res = pickle.load(
open(
"char/old_char/BS26w60wk50MBret0con0.0W100ste200rewsqrtsme1ID4/"
+ "res{0:04d}.pickle".format(i),
"rb",
)
)
counts_windows_boot += res["counts_windows_boot"]
for i in range(4):
res = pickle.load(
open(
"char/old_char/BS26w60wk50MBret0con0.0W100ste200rewsqrtsme1ID5/"
+ "res{0:04d}.pickle".format(i),
"rb",
)
)
counts_windows_boot += res["counts_windows_boot"]
bootstraps = len(counts_windows_boot)
print("found boostraps: ", bootstraps)
return counts_windows_boot
def load_old_bootstrap_experiments00():
counts_windows_boot = []
for i in range(47): # 26
res = pickle.load(
open(
"char/old_char/BS26w60wk50MBret0con0.0W100ste200rewnonesme0ID0/"
+ "res{0:04d}.pickle".format(i),
"rb",
)
)
counts_windows_boot += res["counts_windows_boot"]
for i in range(49): # 26
res = pickle.load(
open(
"char/old_char/BS26w60wk50MBret0con0.0W100ste200rewnonesme0ID1/"
+ "res{0:04d}.pickle".format(i),
"rb",
)
)
counts_windows_boot += res["counts_windows_boot"]
for i in range(45): # 26
res = pickle.load(
open(
"char/old_char/BS26w60wk50MBret0con0.0W100ste200rewnonesme0ID1/"
+ "res{0:04d}.pickle".format(i),
"rb",
)
)
counts_windows_boot += res["counts_windows_boot"]
for i in range(44): # 26
res = pickle.load(
open(
"char/old_char/BS26w60wk50MBret0con0.0W100ste200rewnonesme0ID1/"
+ "res{0:04d}.pickle".format(i),
"rb",
)
)
counts_windows_boot += res["counts_windows_boot"]
for i in range(15):
res = pickle.load(
open(
"char/old_char/BS26w60wk50MBret0con0.0W100ste200rewsqrtsme1ID4/"
+ "res{0:04d}.pickle".format(i),
"rb",
)
)
counts_windows_boot += res["counts_windows_boot"]
bootstraps = len(counts_windows_boot)
print("found boostraps: ", bootstraps)
return counts_windows_boot