Spaces:
Sleeping

File size: 4,609 Bytes
4a7e12a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
{
  "model_name": "Stacking Ensemble (CART + Extra Trees + Bagging)",
  "algorithm_list_refs": {
    "CART Decision Tree": "#7 - CART",
    "Extra Trees": "#21 - Extra Trees (Extremely Randomized Trees)",
    "Bagging": "#19 - Bagging (Bootstrap Aggregating)",
    "Ensemble Method": "#23 - Stacking",
    "Meta Learner": "#2 - Logistic Regression (L2)"
  },
  "regularization": {
    "Extra Trees": "n_estimators=150, averaging over trees = implicit regularization",
    "Bagging": "max_samples=0.9, max_features=0.9 (subsampling variance reduction)",
    "Meta LR": "C=2.0 (L2 regularization on meta-learner)"
  },
  "test_accuracy": 0.9082,
  "test_f1_weighted": 0.9091,
  "test_f1_macro": 0.8825,
  "test_roc_auc": 0.9822,
  "test_precision_weighted": 0.9114,
  "test_recall_weighted": 0.9082,
  "features": [
    "Time",
    "Day_of_week",
    "Age_band_of_driver",
    "Sex_of_driver",
    "Educational_level",
    "Vehicle_driver_relation",
    "Driving_experience",
    "Lanes_or_Medians",
    "Types_of_Junction",
    "Road_surface_type",
    "Road_surface_conditions",
    "Light_conditions",
    "Weather_conditions",
    "Type_of_collision",
    "Number_of_vehicles_involved",
    "Number_of_casualties",
    "Vehicle_type",
    "Cause_of_accident",
    "Pedestrian_movement",
    "Vehicle_movement",
    "Road_allignment",
    "Area_accident_occured",
    "Sub_district"
  ],
  "classes": [
    "Slight Injury",
    "Serious Injury",
    "Fatal injury"
  ],
  "label_map": {
    "Slight Injury": 0,
    "Serious Injury": 1,
    "Fatal injury": 2
  },
  "cat_cols": [
    "Time",
    "Day_of_week",
    "Age_band_of_driver",
    "Sex_of_driver",
    "Educational_level",
    "Vehicle_driver_relation",
    "Driving_experience",
    "Lanes_or_Medians",
    "Types_of_Junction",
    "Road_surface_type",
    "Road_surface_conditions",
    "Light_conditions",
    "Weather_conditions",
    "Type_of_collision",
    "Vehicle_type",
    "Cause_of_accident",
    "Pedestrian_movement",
    "Vehicle_movement",
    "Road_allignment",
    "Area_accident_occured",
    "Sub_district"
  ],
  "num_cols": [
    "Number_of_vehicles_involved",
    "Number_of_casualties"
  ],
  "cat_unique": {
    "Time": [
      "Afternoon (14-18)",
      "Night (22-6)"
    ],
    "Day_of_week": [
      "Friday",
      "Monday",
      "Saturday",
      "Sunday",
      "Thursday",
      "Tuesday",
      "Wednesday"
    ],
    "Age_band_of_driver": [
      "18-30",
      "31-50"
    ],
    "Sex_of_driver": [
      "Female",
      "Male"
    ],
    "Educational_level": [
      "Above high school",
      "Elementary school",
      "High school",
      "Unknown"
    ],
    "Vehicle_driver_relation": [
      "Employee",
      "Other",
      "Owner"
    ],
    "Driving_experience": [
      "2-5yr",
      "Below 1yr",
      "No Licence"
    ],
    "Lanes_or_Medians": [
      "Double carriageway (median)",
      "One way",
      "Two-way (divided with broken lines road marking)",
      "Undivided Two way"
    ],
    "Types_of_Junction": [
      "Crossing",
      "No junction",
      "T Shape",
      "Unknown",
      "Y Shape"
    ],
    "Road_surface_type": [
      "Asphalt roads",
      "Asphalt roads with some distress",
      "Earth roads",
      "Gravel roads"
    ],
    "Road_surface_conditions": [
      "Dry",
      "Wet or damp"
    ],
    "Light_conditions": [
      "Darkness - no lighting",
      "Daylight"
    ],
    "Weather_conditions": [
      "Cloudy",
      "Normal",
      "Raining",
      "Raining and Windy"
    ],
    "Type_of_collision": [
      "Rollover",
      "Vehicle with vehicle collision"
    ],
    "Vehicle_type": [
      "Automobile",
      "Bajaj",
      "Long lorry",
      "Lorry (41-100Q)",
      "Motorcycle",
      "Public (12 seats)",
      "Taxi"
    ],
    "Cause_of_accident": [
      "Drunk driving",
      "Other",
      "Overspeed"
    ],
    "Pedestrian_movement": [
      "Crossing from driver near side",
      "Crossing from nearside",
      "Not a Pedestrian",
      "Unknown or other"
    ],
    "Vehicle_movement": [
      "Going straight",
      "Moving Backward",
      "Stopping",
      "Turnover",
      "U-Turn"
    ],
    "Road_allignment": [
      "Steep grade downward with mountainous terrain",
      "Tangent road with flat terrain"
    ],
    "Area_accident_occured": [
      "Outside Addis Ababa",
      "Residential areas"
    ],
    "Sub_district": [
      "Addis Ketema",
      "Akaki Kaliti",
      "Arada",
      "Bole",
      "Gulele",
      "Kirkos",
      "Kolfe Keranio",
      "Lideta",
      "Nifas Silk-Lafto",
      "Yeka"
    ]
  }
}