pppereira3
commited on
Commit
•
31f28a2
1
Parent(s):
36a5d45
pushing files to the repo from the example!
Browse files- NYC_SQF_ARR_SVM.pkl +3 -0
- README.md +259 -0
- config.json +136 -0
NYC_SQF_ARR_SVM.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:75b455f31d73170cc76ed1e8376c4b976ff1ed90301938090d28eab2c1282a28
|
3 |
+
size 1940
|
README.md
ADDED
@@ -0,0 +1,259 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: sklearn
|
3 |
+
tags:
|
4 |
+
- sklearn
|
5 |
+
- skops
|
6 |
+
- tabular-classification
|
7 |
+
model_format: pickle
|
8 |
+
model_file: NYC_SQF_ARR_SVM.pkl
|
9 |
+
widget:
|
10 |
+
- structuredData:
|
11 |
+
ASK_FOR_CONSENT_FLG:
|
12 |
+
- 1
|
13 |
+
- 1
|
14 |
+
- 0
|
15 |
+
CONSENT_GIVEN_FLG:
|
16 |
+
- 1
|
17 |
+
- 0
|
18 |
+
- 0
|
19 |
+
FIREARM_FLAG:
|
20 |
+
- 0
|
21 |
+
- 0
|
22 |
+
- 0
|
23 |
+
FRISKED_FLAG:
|
24 |
+
- 1
|
25 |
+
- 1
|
26 |
+
- 1
|
27 |
+
ISSUING_OFFICER_RANK:
|
28 |
+
- 10
|
29 |
+
- 13
|
30 |
+
- 9
|
31 |
+
KNIFE_CUTTER_FLAG:
|
32 |
+
- 0
|
33 |
+
- 0
|
34 |
+
- 0
|
35 |
+
OTHER_CONTRABAND_FLAG:
|
36 |
+
- 1
|
37 |
+
- 0
|
38 |
+
- 0
|
39 |
+
OTHER_WEAPON_FLAG:
|
40 |
+
- 0
|
41 |
+
- 0
|
42 |
+
- 0
|
43 |
+
SEARCHED_FLAG:
|
44 |
+
- 1
|
45 |
+
- 0
|
46 |
+
- 1
|
47 |
+
STOP_ID:
|
48 |
+
- 8283
|
49 |
+
- 4532
|
50 |
+
- 14787
|
51 |
+
STOP_LOCATION_PRECINCT:
|
52 |
+
- 90
|
53 |
+
- 40
|
54 |
+
- 106
|
55 |
+
SUPERVISING_OFFICER_RANK:
|
56 |
+
- 12
|
57 |
+
- 7
|
58 |
+
- 12
|
59 |
+
SUSPECT_BODY_BUILD_TYPE:
|
60 |
+
- 2
|
61 |
+
- 3
|
62 |
+
- 3
|
63 |
+
SUSPECT_HEIGHT:
|
64 |
+
- 5.7
|
65 |
+
- 5.1
|
66 |
+
- 5.6
|
67 |
+
SUSPECT_RACE_DESCRIPTION:
|
68 |
+
- 7
|
69 |
+
- 3
|
70 |
+
- 7
|
71 |
+
SUSPECT_REPORTED_AGE:
|
72 |
+
- 22.0
|
73 |
+
- 20.0
|
74 |
+
- 30.0
|
75 |
+
SUSPECT_SEX:
|
76 |
+
- 1
|
77 |
+
- 2
|
78 |
+
- 2
|
79 |
+
SUSPECT_WEIGHT:
|
80 |
+
- 135.0
|
81 |
+
- 170.0
|
82 |
+
- 150.0
|
83 |
+
WEAPON_FOUND_FLAG:
|
84 |
+
- 0
|
85 |
+
- 0
|
86 |
+
- 0
|
87 |
+
__index_level_0__:
|
88 |
+
- 8282
|
89 |
+
- 4531
|
90 |
+
- 14786
|
91 |
+
---
|
92 |
+
|
93 |
+
# Model description
|
94 |
+
|
95 |
+
[More Information Needed]
|
96 |
+
|
97 |
+
## Intended uses & limitations
|
98 |
+
|
99 |
+
[More Information Needed]
|
100 |
+
|
101 |
+
## Training Procedure
|
102 |
+
|
103 |
+
[More Information Needed]
|
104 |
+
|
105 |
+
### Hyperparameters
|
106 |
+
|
107 |
+
<details>
|
108 |
+
<summary> Click to expand </summary>
|
109 |
+
|
110 |
+
| Hyperparameter | Value |
|
111 |
+
|--------------------------|----------------------------------------------------------|
|
112 |
+
| memory | |
|
113 |
+
| steps | [('scaler', StandardScaler()), ('svm', SGDClassifier())] |
|
114 |
+
| verbose | False |
|
115 |
+
| scaler | StandardScaler() |
|
116 |
+
| svm | SGDClassifier() |
|
117 |
+
| scaler__copy | True |
|
118 |
+
| scaler__with_mean | True |
|
119 |
+
| scaler__with_std | True |
|
120 |
+
| svm__alpha | 0.0001 |
|
121 |
+
| svm__average | False |
|
122 |
+
| svm__class_weight | |
|
123 |
+
| svm__early_stopping | False |
|
124 |
+
| svm__epsilon | 0.1 |
|
125 |
+
| svm__eta0 | 0.0 |
|
126 |
+
| svm__fit_intercept | True |
|
127 |
+
| svm__l1_ratio | 0.15 |
|
128 |
+
| svm__learning_rate | optimal |
|
129 |
+
| svm__loss | hinge |
|
130 |
+
| svm__max_iter | 1000 |
|
131 |
+
| svm__n_iter_no_change | 5 |
|
132 |
+
| svm__n_jobs | |
|
133 |
+
| svm__penalty | l2 |
|
134 |
+
| svm__power_t | 0.5 |
|
135 |
+
| svm__random_state | |
|
136 |
+
| svm__shuffle | True |
|
137 |
+
| svm__tol | 0.001 |
|
138 |
+
| svm__validation_fraction | 0.1 |
|
139 |
+
| svm__verbose | 0 |
|
140 |
+
| svm__warm_start | False |
|
141 |
+
|
142 |
+
</details>
|
143 |
+
|
144 |
+
### Model Plot
|
145 |
+
|
146 |
+
<style>#sk-container-id-1 {/* Definition of color scheme common for light and dark mode */--sklearn-color-text: black;--sklearn-color-line: gray;/* Definition of color scheme for unfitted estimators */--sklearn-color-unfitted-level-0: #fff5e6;--sklearn-color-unfitted-level-1: #f6e4d2;--sklearn-color-unfitted-level-2: #ffe0b3;--sklearn-color-unfitted-level-3: chocolate;/* Definition of color scheme for fitted estimators */--sklearn-color-fitted-level-0: #f0f8ff;--sklearn-color-fitted-level-1: #d4ebff;--sklearn-color-fitted-level-2: #b3dbfd;--sklearn-color-fitted-level-3: cornflowerblue;/* Specific color for light theme */--sklearn-color-text-on-default-background: var(--sg-text-color, var(--theme-code-foreground, var(--jp-content-font-color1, black)));--sklearn-color-background: var(--sg-background-color, var(--theme-background, var(--jp-layout-color0, white)));--sklearn-color-border-box: var(--sg-text-color, var(--theme-code-foreground, var(--jp-content-font-color1, black)));--sklearn-color-icon: #696969;@media (prefers-color-scheme: dark) {/* Redefinition of color scheme for dark theme */--sklearn-color-text-on-default-background: var(--sg-text-color, var(--theme-code-foreground, var(--jp-content-font-color1, white)));--sklearn-color-background: var(--sg-background-color, var(--theme-background, var(--jp-layout-color0, #111)));--sklearn-color-border-box: var(--sg-text-color, var(--theme-code-foreground, var(--jp-content-font-color1, white)));--sklearn-color-icon: #878787;}
|
147 |
+
}#sk-container-id-1 {color: var(--sklearn-color-text);
|
148 |
+
}#sk-container-id-1 pre {padding: 0;
|
149 |
+
}#sk-container-id-1 input.sk-hidden--visually {border: 0;clip: rect(1px 1px 1px 1px);clip: rect(1px, 1px, 1px, 1px);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;
|
150 |
+
}#sk-container-id-1 div.sk-dashed-wrapped {border: 1px dashed var(--sklearn-color-line);margin: 0 0.4em 0.5em 0.4em;box-sizing: border-box;padding-bottom: 0.4em;background-color: var(--sklearn-color-background);
|
151 |
+
}#sk-container-id-1 div.sk-container {/* jupyter's `normalize.less` sets `[hidden] { display: none; }`but bootstrap.min.css set `[hidden] { display: none !important; }`so we also need the `!important` here to be able to override thedefault hidden behavior on the sphinx rendered scikit-learn.org.See: https://github.com/scikit-learn/scikit-learn/issues/21755 */display: inline-block !important;position: relative;
|
152 |
+
}#sk-container-id-1 div.sk-text-repr-fallback {display: none;
|
153 |
+
}div.sk-parallel-item,
|
154 |
+
div.sk-serial,
|
155 |
+
div.sk-item {/* draw centered vertical line to link estimators */background-image: linear-gradient(var(--sklearn-color-text-on-default-background), var(--sklearn-color-text-on-default-background));background-size: 2px 100%;background-repeat: no-repeat;background-position: center center;
|
156 |
+
}/* Parallel-specific style estimator block */#sk-container-id-1 div.sk-parallel-item::after {content: "";width: 100%;border-bottom: 2px solid var(--sklearn-color-text-on-default-background);flex-grow: 1;
|
157 |
+
}#sk-container-id-1 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: var(--sklearn-color-background);position: relative;
|
158 |
+
}#sk-container-id-1 div.sk-parallel-item {display: flex;flex-direction: column;
|
159 |
+
}#sk-container-id-1 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;
|
160 |
+
}#sk-container-id-1 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;
|
161 |
+
}#sk-container-id-1 div.sk-parallel-item:only-child::after {width: 0;
|
162 |
+
}/* Serial-specific style estimator block */#sk-container-id-1 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: var(--sklearn-color-background);padding-right: 1em;padding-left: 1em;
|
163 |
+
}/* Toggleable style: style used for estimator/Pipeline/ColumnTransformer box that is
|
164 |
+
clickable and can be expanded/collapsed.
|
165 |
+
- Pipeline and ColumnTransformer use this feature and define the default style
|
166 |
+
- Estimators will overwrite some part of the style using the `sk-estimator` class
|
167 |
+
*//* Pipeline and ColumnTransformer style (default) */#sk-container-id-1 div.sk-toggleable {/* Default theme specific background. It is overwritten whether we have aspecific estimator or a Pipeline/ColumnTransformer */background-color: var(--sklearn-color-background);
|
168 |
+
}/* Toggleable label */
|
169 |
+
#sk-container-id-1 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.5em;box-sizing: border-box;text-align: center;
|
170 |
+
}#sk-container-id-1 label.sk-toggleable__label-arrow:before {/* Arrow on the left of the label */content: "▸";float: left;margin-right: 0.25em;color: var(--sklearn-color-icon);
|
171 |
+
}#sk-container-id-1 label.sk-toggleable__label-arrow:hover:before {color: var(--sklearn-color-text);
|
172 |
+
}/* Toggleable content - dropdown */#sk-container-id-1 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;/* unfitted */background-color: var(--sklearn-color-unfitted-level-0);
|
173 |
+
}#sk-container-id-1 div.sk-toggleable__content.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
|
174 |
+
}#sk-container-id-1 div.sk-toggleable__content pre {margin: 0.2em;border-radius: 0.25em;color: var(--sklearn-color-text);/* unfitted */background-color: var(--sklearn-color-unfitted-level-0);
|
175 |
+
}#sk-container-id-1 div.sk-toggleable__content.fitted pre {/* unfitted */background-color: var(--sklearn-color-fitted-level-0);
|
176 |
+
}#sk-container-id-1 input.sk-toggleable__control:checked~div.sk-toggleable__content {/* Expand drop-down */max-height: 200px;max-width: 100%;overflow: auto;
|
177 |
+
}#sk-container-id-1 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: "▾";
|
178 |
+
}/* Pipeline/ColumnTransformer-specific style */#sk-container-id-1 div.sk-label input.sk-toggleable__control:checked~label.sk-toggleable__label {color: var(--sklearn-color-text);background-color: var(--sklearn-color-unfitted-level-2);
|
179 |
+
}#sk-container-id-1 div.sk-label.fitted input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: var(--sklearn-color-fitted-level-2);
|
180 |
+
}/* Estimator-specific style *//* Colorize estimator box */
|
181 |
+
#sk-container-id-1 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
|
182 |
+
}#sk-container-id-1 div.sk-estimator.fitted input.sk-toggleable__control:checked~label.sk-toggleable__label {/* fitted */background-color: var(--sklearn-color-fitted-level-2);
|
183 |
+
}#sk-container-id-1 div.sk-label label.sk-toggleable__label,
|
184 |
+
#sk-container-id-1 div.sk-label label {/* The background is the default theme color */color: var(--sklearn-color-text-on-default-background);
|
185 |
+
}/* On hover, darken the color of the background */
|
186 |
+
#sk-container-id-1 div.sk-label:hover label.sk-toggleable__label {color: var(--sklearn-color-text);background-color: var(--sklearn-color-unfitted-level-2);
|
187 |
+
}/* Label box, darken color on hover, fitted */
|
188 |
+
#sk-container-id-1 div.sk-label.fitted:hover label.sk-toggleable__label.fitted {color: var(--sklearn-color-text);background-color: var(--sklearn-color-fitted-level-2);
|
189 |
+
}/* Estimator label */#sk-container-id-1 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;
|
190 |
+
}#sk-container-id-1 div.sk-label-container {text-align: center;
|
191 |
+
}/* Estimator-specific */
|
192 |
+
#sk-container-id-1 div.sk-estimator {font-family: monospace;border: 1px dotted var(--sklearn-color-border-box);border-radius: 0.25em;box-sizing: border-box;margin-bottom: 0.5em;/* unfitted */background-color: var(--sklearn-color-unfitted-level-0);
|
193 |
+
}#sk-container-id-1 div.sk-estimator.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
|
194 |
+
}/* on hover */
|
195 |
+
#sk-container-id-1 div.sk-estimator:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
|
196 |
+
}#sk-container-id-1 div.sk-estimator.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-2);
|
197 |
+
}/* Specification for estimator info (e.g. "i" and "?") *//* Common style for "i" and "?" */.sk-estimator-doc-link,
|
198 |
+
a:link.sk-estimator-doc-link,
|
199 |
+
a:visited.sk-estimator-doc-link {float: right;font-size: smaller;line-height: 1em;font-family: monospace;background-color: var(--sklearn-color-background);border-radius: 1em;height: 1em;width: 1em;text-decoration: none !important;margin-left: 1ex;/* unfitted */border: var(--sklearn-color-unfitted-level-1) 1pt solid;color: var(--sklearn-color-unfitted-level-1);
|
200 |
+
}.sk-estimator-doc-link.fitted,
|
201 |
+
a:link.sk-estimator-doc-link.fitted,
|
202 |
+
a:visited.sk-estimator-doc-link.fitted {/* fitted */border: var(--sklearn-color-fitted-level-1) 1pt solid;color: var(--sklearn-color-fitted-level-1);
|
203 |
+
}/* On hover */
|
204 |
+
div.sk-estimator:hover .sk-estimator-doc-link:hover,
|
205 |
+
.sk-estimator-doc-link:hover,
|
206 |
+
div.sk-label-container:hover .sk-estimator-doc-link:hover,
|
207 |
+
.sk-estimator-doc-link:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
|
208 |
+
}div.sk-estimator.fitted:hover .sk-estimator-doc-link.fitted:hover,
|
209 |
+
.sk-estimator-doc-link.fitted:hover,
|
210 |
+
div.sk-label-container:hover .sk-estimator-doc-link.fitted:hover,
|
211 |
+
.sk-estimator-doc-link.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
|
212 |
+
}/* Span, style for the box shown on hovering the info icon */
|
213 |
+
.sk-estimator-doc-link span {display: none;z-index: 9999;position: relative;font-weight: normal;right: .2ex;padding: .5ex;margin: .5ex;width: min-content;min-width: 20ex;max-width: 50ex;color: var(--sklearn-color-text);box-shadow: 2pt 2pt 4pt #999;/* unfitted */background: var(--sklearn-color-unfitted-level-0);border: .5pt solid var(--sklearn-color-unfitted-level-3);
|
214 |
+
}.sk-estimator-doc-link.fitted span {/* fitted */background: var(--sklearn-color-fitted-level-0);border: var(--sklearn-color-fitted-level-3);
|
215 |
+
}.sk-estimator-doc-link:hover span {display: block;
|
216 |
+
}/* "?"-specific style due to the `<a>` HTML tag */#sk-container-id-1 a.estimator_doc_link {float: right;font-size: 1rem;line-height: 1em;font-family: monospace;background-color: var(--sklearn-color-background);border-radius: 1rem;height: 1rem;width: 1rem;text-decoration: none;/* unfitted */color: var(--sklearn-color-unfitted-level-1);border: var(--sklearn-color-unfitted-level-1) 1pt solid;
|
217 |
+
}#sk-container-id-1 a.estimator_doc_link.fitted {/* fitted */border: var(--sklearn-color-fitted-level-1) 1pt solid;color: var(--sklearn-color-fitted-level-1);
|
218 |
+
}/* On hover */
|
219 |
+
#sk-container-id-1 a.estimator_doc_link:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
|
220 |
+
}#sk-container-id-1 a.estimator_doc_link.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-3);
|
221 |
+
}
|
222 |
+
</style><div id="sk-container-id-1" class="sk-top-container" style="overflow: auto;"><div class="sk-text-repr-fallback"><pre>Pipeline(steps=[('scaler', StandardScaler()), ('svm', SGDClassifier())])</pre><b>In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. <br />On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.</b></div><div class="sk-container" hidden><div class="sk-item sk-dashed-wrapped"><div class="sk-label-container"><div class="sk-label fitted sk-toggleable"><input class="sk-toggleable__control sk-hidden--visually" id="sk-estimator-id-1" type="checkbox" ><label for="sk-estimator-id-1" class="sk-toggleable__label fitted sk-toggleable__label-arrow fitted"> Pipeline<a class="sk-estimator-doc-link fitted" rel="noreferrer" target="_blank" href="https://scikit-learn.org/1.5/modules/generated/sklearn.pipeline.Pipeline.html">?<span>Documentation for Pipeline</span></a><span class="sk-estimator-doc-link fitted">i<span>Fitted</span></span></label><div class="sk-toggleable__content fitted"><pre>Pipeline(steps=[('scaler', StandardScaler()), ('svm', SGDClassifier())])</pre></div> </div></div><div class="sk-serial"><div class="sk-item"><div class="sk-estimator fitted sk-toggleable"><input class="sk-toggleable__control sk-hidden--visually" id="sk-estimator-id-2" type="checkbox" ><label for="sk-estimator-id-2" class="sk-toggleable__label fitted sk-toggleable__label-arrow fitted"> StandardScaler<a class="sk-estimator-doc-link fitted" rel="noreferrer" target="_blank" href="https://scikit-learn.org/1.5/modules/generated/sklearn.preprocessing.StandardScaler.html">?<span>Documentation for StandardScaler</span></a></label><div class="sk-toggleable__content fitted"><pre>StandardScaler()</pre></div> </div></div><div class="sk-item"><div class="sk-estimator fitted sk-toggleable"><input class="sk-toggleable__control sk-hidden--visually" id="sk-estimator-id-3" type="checkbox" ><label for="sk-estimator-id-3" class="sk-toggleable__label fitted sk-toggleable__label-arrow fitted"> SGDClassifier<a class="sk-estimator-doc-link fitted" rel="noreferrer" target="_blank" href="https://scikit-learn.org/1.5/modules/generated/sklearn.linear_model.SGDClassifier.html">?<span>Documentation for SGDClassifier</span></a></label><div class="sk-toggleable__content fitted"><pre>SGDClassifier()</pre></div> </div></div></div></div></div></div>
|
223 |
+
|
224 |
+
## Evaluation Results
|
225 |
+
|
226 |
+
| Metric | Value |
|
227 |
+
|-----------|----------|
|
228 |
+
| accuracy | 0.820274 |
|
229 |
+
| f1 score | 0.695733 |
|
230 |
+
| precision | 0.752005 |
|
231 |
+
| recall | 0.647296 |
|
232 |
+
|
233 |
+
# How to Get Started with the Model
|
234 |
+
|
235 |
+
[More Information Needed]
|
236 |
+
|
237 |
+
# Model Card Authors
|
238 |
+
|
239 |
+
This model card is written by following authors:
|
240 |
+
|
241 |
+
[More Information Needed]
|
242 |
+
|
243 |
+
# Model Card Contact
|
244 |
+
|
245 |
+
You can contact the model card authors through following channels:
|
246 |
+
[More Information Needed]
|
247 |
+
|
248 |
+
# Citation
|
249 |
+
|
250 |
+
Below you can find information related to citation.
|
251 |
+
|
252 |
+
**BibTeX:**
|
253 |
+
```
|
254 |
+
[More Information Needed]
|
255 |
+
```
|
256 |
+
|
257 |
+
# eval_method
|
258 |
+
|
259 |
+
The model is evaluated using test split, on accuracy, precision, recall and f1.
|
config.json
ADDED
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"sklearn": {
|
3 |
+
"columns": [
|
4 |
+
"STOP_ID",
|
5 |
+
"FRISKED_FLAG",
|
6 |
+
"SEARCHED_FLAG",
|
7 |
+
"STOP_LOCATION_PRECINCT",
|
8 |
+
"SUSPECT_REPORTED_AGE",
|
9 |
+
"SUSPECT_SEX",
|
10 |
+
"SUSPECT_RACE_DESCRIPTION",
|
11 |
+
"SUSPECT_HEIGHT",
|
12 |
+
"SUSPECT_WEIGHT",
|
13 |
+
"SUSPECT_BODY_BUILD_TYPE",
|
14 |
+
"OTHER_CONTRABAND_FLAG",
|
15 |
+
"FIREARM_FLAG",
|
16 |
+
"KNIFE_CUTTER_FLAG",
|
17 |
+
"OTHER_WEAPON_FLAG",
|
18 |
+
"WEAPON_FOUND_FLAG",
|
19 |
+
"ASK_FOR_CONSENT_FLG",
|
20 |
+
"CONSENT_GIVEN_FLG",
|
21 |
+
"ISSUING_OFFICER_RANK",
|
22 |
+
"SUPERVISING_OFFICER_RANK",
|
23 |
+
"__index_level_0__"
|
24 |
+
],
|
25 |
+
"environment": [
|
26 |
+
"scikit-learn=1.5.2"
|
27 |
+
],
|
28 |
+
"example_input": {
|
29 |
+
"ASK_FOR_CONSENT_FLG": [
|
30 |
+
1,
|
31 |
+
1,
|
32 |
+
0
|
33 |
+
],
|
34 |
+
"CONSENT_GIVEN_FLG": [
|
35 |
+
1,
|
36 |
+
0,
|
37 |
+
0
|
38 |
+
],
|
39 |
+
"FIREARM_FLAG": [
|
40 |
+
0,
|
41 |
+
0,
|
42 |
+
0
|
43 |
+
],
|
44 |
+
"FRISKED_FLAG": [
|
45 |
+
1,
|
46 |
+
1,
|
47 |
+
1
|
48 |
+
],
|
49 |
+
"ISSUING_OFFICER_RANK": [
|
50 |
+
10,
|
51 |
+
13,
|
52 |
+
9
|
53 |
+
],
|
54 |
+
"KNIFE_CUTTER_FLAG": [
|
55 |
+
0,
|
56 |
+
0,
|
57 |
+
0
|
58 |
+
],
|
59 |
+
"OTHER_CONTRABAND_FLAG": [
|
60 |
+
1,
|
61 |
+
0,
|
62 |
+
0
|
63 |
+
],
|
64 |
+
"OTHER_WEAPON_FLAG": [
|
65 |
+
0,
|
66 |
+
0,
|
67 |
+
0
|
68 |
+
],
|
69 |
+
"SEARCHED_FLAG": [
|
70 |
+
1,
|
71 |
+
0,
|
72 |
+
1
|
73 |
+
],
|
74 |
+
"STOP_ID": [
|
75 |
+
8283,
|
76 |
+
4532,
|
77 |
+
14787
|
78 |
+
],
|
79 |
+
"STOP_LOCATION_PRECINCT": [
|
80 |
+
90,
|
81 |
+
40,
|
82 |
+
106
|
83 |
+
],
|
84 |
+
"SUPERVISING_OFFICER_RANK": [
|
85 |
+
12,
|
86 |
+
7,
|
87 |
+
12
|
88 |
+
],
|
89 |
+
"SUSPECT_BODY_BUILD_TYPE": [
|
90 |
+
2,
|
91 |
+
3,
|
92 |
+
3
|
93 |
+
],
|
94 |
+
"SUSPECT_HEIGHT": [
|
95 |
+
5.7,
|
96 |
+
5.1,
|
97 |
+
5.6
|
98 |
+
],
|
99 |
+
"SUSPECT_RACE_DESCRIPTION": [
|
100 |
+
7,
|
101 |
+
3,
|
102 |
+
7
|
103 |
+
],
|
104 |
+
"SUSPECT_REPORTED_AGE": [
|
105 |
+
22.0,
|
106 |
+
20.0,
|
107 |
+
30.0
|
108 |
+
],
|
109 |
+
"SUSPECT_SEX": [
|
110 |
+
1,
|
111 |
+
2,
|
112 |
+
2
|
113 |
+
],
|
114 |
+
"SUSPECT_WEIGHT": [
|
115 |
+
135.0,
|
116 |
+
170.0,
|
117 |
+
150.0
|
118 |
+
],
|
119 |
+
"WEAPON_FOUND_FLAG": [
|
120 |
+
0,
|
121 |
+
0,
|
122 |
+
0
|
123 |
+
],
|
124 |
+
"__index_level_0__": [
|
125 |
+
8282,
|
126 |
+
4531,
|
127 |
+
14786
|
128 |
+
]
|
129 |
+
},
|
130 |
+
"model": {
|
131 |
+
"file": "NYC_SQF_ARR_SVM.pkl"
|
132 |
+
},
|
133 |
+
"model_format": "pickle",
|
134 |
+
"task": "tabular-classification"
|
135 |
+
}
|
136 |
+
}
|