forked from healthylaife/MIMIC-IV-Data-Pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexperiment.py
87 lines (51 loc) · 1.48 KB
/
experiment.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
import pickle
condVocabDict={}
procVocabDict={}
medVocabDict={}
outVocabDict={}
chartVocabDict={}
labVocabDict={}
ethVocabDict={}
ageVocabDict={}
genderVocabDict={}
insVocabDict={}
with open('./data/dict/'+'ethVocabDict', 'rb') as fp:
ethVocabDict= pickle.load(fp)
with open('./data/dict/'+'ageVocabDict', 'rb') as fp:
ageVocabDict= pickle.load(fp)
with open('./data/dict/'+'genderVocabDict', 'rb') as fp:
genderVocabDict= pickle.load(fp)
with open('./data/dict/'+'insVocabDict', 'rb') as fp:
insVocabDict= pickle.load(fp)
for key, value in insVocabDict.items():
print(key, " : ", value)
file='condVocab'
with open ('./data/dict/'+file, 'rb') as fp:
condVocabDict = pickle.load(fp)
print(len(condVocabDict))
print(condVocabDict)
file='procVocab'
with open ('./data/dict/'+file, 'rb') as fp:
procVocabDict = pickle.load(fp)
print(len(procVocabDict))
print(procVocabDict)
file='medVocab'
with open ('./data/dict/'+file, 'rb') as fp:
medVocabDict = pickle.load(fp)
print(len(medVocabDict))
print(medVocabDict)
file='outVocab'
with open ('./data/dict/'+file, 'rb') as fp:
outVocabDict = pickle.load(fp)
print(len(outVocabDict))
print(outVocabDict)
file='chartVocab'
with open ('./data/dict/'+file, 'rb') as fp:
chartVocabDict = pickle.load(fp)
print(len(chartVocabDict))
print(chartVocabDict)
file='labsVocab'
with open ('./data/dict/'+file, 'rb') as fp:
labVocabDict = pickle.load(fp)
print(len(labVocabDict))
print(labVocabDict)