Datasets:
Upload 2 files
Browse files- post-operative.data +91 -0
- post_operative.py +37 -6
post-operative.data
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
internal_temperature,surface_temperature,oxigen_saturation,blood_pressure,is_surface_temperature_stable,is_internal_temperature_stable,is_blood_pressure_stable,perceived_comfort,decision
|
2 |
+
mid,low,excellent,mid,stable,stable,stable,15,0
|
3 |
+
mid,high,excellent,high,stable,stable,stable,10,1
|
4 |
+
high,low,excellent,high,stable,stable,mod-stable,10,0
|
5 |
+
mid,low,good,high,stable,unstable,mod-stable,15,A
|
6 |
+
mid,mid,excellent,high,stable,stable,stable,10,0
|
7 |
+
high,low,good,mid,stable,stable,unstable,15,1
|
8 |
+
mid,low,excellent,high,stable,stable,mod-stable,05,1
|
9 |
+
high,mid,excellent,mid,unstable,unstable,stable,10,1
|
10 |
+
mid,high,good,mid,stable,stable,stable,10,1
|
11 |
+
mid,low,excellent,mid,unstable,stable,mod-stable,10,1
|
12 |
+
mid,mid,good,mid,stable,stable,stable,15,0
|
13 |
+
mid,low,good,high,stable,stable,mod-stable,10,0
|
14 |
+
high,high,excellent,high,unstable,stable,unstable,15,0
|
15 |
+
mid,high,good,mid,unstable,stable,mod-stable,10,0
|
16 |
+
mid,low,good,high,unstable,unstable,stable,15,1
|
17 |
+
high,high,excellent,high,unstable,stable,unstable,10,0
|
18 |
+
low,high,good,high,unstable,stable,mod-stable,15,0
|
19 |
+
mid,low,good,high,unstable,stable,stable,10,0
|
20 |
+
mid,high,good,mid,unstable,stable,unstable,15,0
|
21 |
+
mid,mid,good,mid,stable,stable,stable,10,0
|
22 |
+
low,high,good,mid,unstable,stable,stable,15,0
|
23 |
+
low,mid,excellent,high,unstable,stable,unstable,10,1
|
24 |
+
mid,mid,good,mid,unstable,stable,unstable,15,0
|
25 |
+
mid,mid,good,mid,unstable,stable,stable,10,0
|
26 |
+
high,high,good,mid,stable,stable,mod-stable,10,0
|
27 |
+
low,mid,good,mid,unstable,stable,stable,10,0
|
28 |
+
high,mid,good,low,stable,stable,mod-stable,10,0
|
29 |
+
low,mid,excellent,high,stable,stable,mod-stable,10,0
|
30 |
+
mid,mid,excellent,mid,stable,stable,unstable,15,0
|
31 |
+
mid,mid,good,mid,unstable,stable,unstable,10,1
|
32 |
+
mid,mid,good,high,unstable,stable,stable,10,0
|
33 |
+
low,low,good,mid,unstable,stable,unstable,10,0
|
34 |
+
mid,mid,excellent,high,unstable,stable,mod-stable,10,0
|
35 |
+
mid,low,good,mid,stable,stable,stable,10,0
|
36 |
+
low,mid,excellent,high,stable,stable,mod-stable,10,0
|
37 |
+
mid,mid,good,mid,stable,stable,stable,10,0
|
38 |
+
low,mid,excellent,mid,stable,stable,stable,10,1
|
39 |
+
low,low,good,mid,unstable,stable,unstable,10,1
|
40 |
+
low,low,good,mid,stable,stable,stable,07,1
|
41 |
+
mid,mid,good,high,unstable,stable,mod-stable,10,0
|
42 |
+
low,low,good,mid,unstable,stable,stable,10,0
|
43 |
+
low,mid,good,mid,stable,stable,stable,15,1
|
44 |
+
high,high,good,high,unstable,stable,stable,15,1
|
45 |
+
mid,mid,good,mid,stable,stable,stable,10,1
|
46 |
+
low,low,excellent,mid,stable,stable,stable,10,0
|
47 |
+
low,mid,good,mid,unstable,stable,stable,10,1
|
48 |
+
low,mid,good,high,unstable,stable,stable,?,2
|
49 |
+
mid,mid,excellent,mid,unstable,stable,stable,10,0
|
50 |
+
high,high,excellent,high,stable,stable,unstable,?,0
|
51 |
+
mid,high,good,low,unstable,stable,stable,10,0
|
52 |
+
mid,high,good,mid,unstable,mod-stable,mod-stable,10,0
|
53 |
+
low,high,excellent,mid,unstable,stable,stable,10,0
|
54 |
+
mid,low,excellent,high,unstable,stable,unstable,10,0
|
55 |
+
mid,mid,good,mid,unstable,stable,mod-stable,10,1
|
56 |
+
high,high,excellent,mid,unstable,stable,mod-stable,10,0
|
57 |
+
mid,mid,good,mid,unstable,stable,stable,15,0
|
58 |
+
high,mid,good,high,stable,stable,unstable,15,0
|
59 |
+
mid,low,good,high,unstable,stable,mod-stable,10,0
|
60 |
+
low,low,good,high,stable,stable,stable,10,0
|
61 |
+
mid,high,good,mid,stable,stable,mod-stable,10,0
|
62 |
+
mid,high,good,mid,unstable,stable,unstable,10,0
|
63 |
+
mid,low,excellent,high,stable,stable,stable,10,0
|
64 |
+
mid,mid,good,mid,stable,stable,unstable,10,0
|
65 |
+
mid,low,excellent,mid,stable,stable,unstable,10,1
|
66 |
+
high,mid,excellent,mid,unstable,unstable,unstable,10,0
|
67 |
+
mid,mid,good,high,stable,stable,stable,10,1
|
68 |
+
mid,low,excellent,mid,unstable,stable,stable,10,0
|
69 |
+
mid,mid,excellent,mid,unstable,stable,stable,10,0
|
70 |
+
mid,mid,excellent,high,stable,stable,stable,10,0
|
71 |
+
mid,mid,excellent,low,stable,stable,stable,10,0
|
72 |
+
mid,low,excellent,mid,unstable,unstable,unstable,?,0
|
73 |
+
low,low,excellent,mid,stable,stable,stable,10,0
|
74 |
+
mid,mid,excellent,mid,stable,stable,mod-stable,10,1
|
75 |
+
mid,mid,excellent,high,stable,stable,stable,10,0
|
76 |
+
mid,low,excellent,high,stable,stable,mod-stable,10,0
|
77 |
+
low,mid,good,mid,stable,stable,unstable,10,0
|
78 |
+
mid,mid,excellent,mid,stable,stable,mod-stable,10,0
|
79 |
+
mid,mid,excellent,mid,stable,stable,unstable,10,0
|
80 |
+
mid,mid,excellent,mid,unstable,unstable,stable,10,1
|
81 |
+
mid,mid,good,high,stable,stable,stable,10,0
|
82 |
+
mid,mid,excellent,mid,stable,stable,stable,15,0
|
83 |
+
mid,mid,excellent,mid,stable,stable,stable,10,1
|
84 |
+
mid,low,good,mid,stable,stable,unstable,10,2
|
85 |
+
high,mid,excellent,mid,unstable,stable,unstable,05,0
|
86 |
+
mid,mid,excellent,mid,stable,stable,unstable,10,0
|
87 |
+
mid,mid,excellent,mid,unstable,stable,stable,10,0
|
88 |
+
mid,mid,excellent,mid,unstable,stable,stable,15,1
|
89 |
+
mid,mid,good,mid,unstable,stable,stable,15,0
|
90 |
+
mid,mid,excellent,mid,unstable,stable,stable,10,0
|
91 |
+
mid,mid,good,mid,unstable,stable,stable,15,1
|
post_operative.py
CHANGED
@@ -11,6 +11,37 @@ import pandas
|
|
11 |
VERSION = datasets.Version("1.0.0")
|
12 |
|
13 |
_ENCODING_DICS = {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
}
|
15 |
|
16 |
DESCRIPTION = "PostOperative dataset."
|
@@ -35,9 +66,9 @@ features_types_per_config = {
|
|
35 |
"surface_temperature": datasets.Value("int8"),
|
36 |
"oxigen_saturation": datasets.Value("int8"),
|
37 |
"blood_pressure": datasets.Value("int8"),
|
38 |
-
"
|
39 |
-
"
|
40 |
-
"
|
41 |
"perceived_comfort": datasets.Value("int8"),
|
42 |
"decision": datasets.ClassLabel(num_classes=3, names=("discharge", "hospital floor", "intensive care")),
|
43 |
},
|
@@ -46,9 +77,9 @@ features_types_per_config = {
|
|
46 |
"surface_temperature": datasets.Value("int8"),
|
47 |
"oxigen_saturation": datasets.Value("int8"),
|
48 |
"blood_pressure": datasets.Value("int8"),
|
49 |
-
"
|
50 |
-
"
|
51 |
-
"
|
52 |
"perceived_comfort": datasets.Value("int8"),
|
53 |
"decision": datasets.ClassLabel(num_classes=2, names=("discharge", "don't discharge")),
|
54 |
}
|
|
|
11 |
VERSION = datasets.Version("1.0.0")
|
12 |
|
13 |
_ENCODING_DICS = {
|
14 |
+
"internal_temperature": {
|
15 |
+
"low": 0,
|
16 |
+
"mid": 1,
|
17 |
+
"high": 2
|
18 |
+
},
|
19 |
+
"surface_temperature": {
|
20 |
+
"low": 0,
|
21 |
+
"mid": 1,
|
22 |
+
"high": 2
|
23 |
+
},
|
24 |
+
"oxigen_saturation": {
|
25 |
+
"good": 0,
|
26 |
+
"excellent": 1
|
27 |
+
},
|
28 |
+
"blood_pressure": {
|
29 |
+
"low": 0,
|
30 |
+
"mid": 1,
|
31 |
+
"high": 2
|
32 |
+
},
|
33 |
+
"is_surface_temperature_stable": {
|
34 |
+
"stable": True,
|
35 |
+
"unstable": False,
|
36 |
+
},
|
37 |
+
"is_internal_temperature_stable": {
|
38 |
+
"stable": True,
|
39 |
+
"unstable": False,
|
40 |
+
},
|
41 |
+
"is_blood_pressure_stable": {
|
42 |
+
"stable": True,
|
43 |
+
"unstable": False,
|
44 |
+
}
|
45 |
}
|
46 |
|
47 |
DESCRIPTION = "PostOperative dataset."
|
|
|
66 |
"surface_temperature": datasets.Value("int8"),
|
67 |
"oxigen_saturation": datasets.Value("int8"),
|
68 |
"blood_pressure": datasets.Value("int8"),
|
69 |
+
"is_surface_temperature_stable": datasets.Value("int8"),
|
70 |
+
"is_internal_temperature_stable": datasets.Value("int8"),
|
71 |
+
"is_blood_pressure_stable": datasets.Value("int8"),
|
72 |
"perceived_comfort": datasets.Value("int8"),
|
73 |
"decision": datasets.ClassLabel(num_classes=3, names=("discharge", "hospital floor", "intensive care")),
|
74 |
},
|
|
|
77 |
"surface_temperature": datasets.Value("int8"),
|
78 |
"oxigen_saturation": datasets.Value("int8"),
|
79 |
"blood_pressure": datasets.Value("int8"),
|
80 |
+
"is_surface_temperature_stable": datasets.Value("int8"),
|
81 |
+
"is_internal_temperature_stable": datasets.Value("int8"),
|
82 |
+
"is_blood_pressure_stable": datasets.Value("int8"),
|
83 |
"perceived_comfort": datasets.Value("int8"),
|
84 |
"decision": datasets.ClassLabel(num_classes=2, names=("discharge", "don't discharge")),
|
85 |
}
|