pppereira3 commited on
Commit
d62660e
·
verified ·
1 Parent(s): 901ca74

update model

Browse files
Files changed (3) hide show
  1. README.md +231 -0
  2. config.json +112 -0
  3. hw4_mnar25_classifier_mean.pkl +3 -0
README.md ADDED
@@ -0,0 +1,231 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: sklearn
3
+ tags:
4
+ - sklearn
5
+ - skops
6
+ - tabular-classification
7
+ model_format: pickle
8
+ model_file: hw4_mnar25_classifier_mean.pkl
9
+ widget:
10
+ - structuredData:
11
+ Age:
12
+ - 30.0
13
+ - 39.0
14
+ - 34.0
15
+ Contract Length_Annual:
16
+ - 1.0
17
+ - 1.0
18
+ - 0.0
19
+ Contract Length_Monthly:
20
+ - 0.0
21
+ - 0.0
22
+ - 0.0
23
+ Contract Length_Quarterly:
24
+ - 0.0
25
+ - 0.0
26
+ - 1.0
27
+ CustomerID:
28
+ - 385551.0
29
+ - 261335.0
30
+ - 211059.0
31
+ Gender_Female:
32
+ - 0.0
33
+ - 1.0
34
+ - 0.0
35
+ Gender_Male:
36
+ - 1.0
37
+ - 0.0
38
+ - 1.0
39
+ Last Interaction:
40
+ - 20.0
41
+ - 9.0
42
+ - 12.0
43
+ Payment Delay:
44
+ - 19.0
45
+ - 7.0
46
+ - 24.0
47
+ Subscription Type_Basic:
48
+ - 1.0
49
+ - 1.0
50
+ - 0.0
51
+ Subscription Type_Premium:
52
+ - 0.0
53
+ - 0.0
54
+ - 0.0
55
+ Subscription Type_Standard:
56
+ - 0.0
57
+ - 0.0
58
+ - 1.0
59
+ Support Calls:
60
+ - 4.681441089545274
61
+ - 4.681441089545274
62
+ - 8.0
63
+ Tenure:
64
+ - 43.0
65
+ - 31.0
66
+ - 17.0
67
+ Total Spend:
68
+ - 914.15
69
+ - 657.3
70
+ - 511.21
71
+ Usage Frequency:
72
+ - 23.0
73
+ - 28.0
74
+ - 24.0
75
+ ---
76
+
77
+ # Model description
78
+
79
+ [More Information Needed]
80
+
81
+ ## Intended uses & limitations
82
+
83
+ [More Information Needed]
84
+
85
+ ## Training Procedure
86
+
87
+ [More Information Needed]
88
+
89
+ ### Hyperparameters
90
+
91
+ <details>
92
+ <summary> Click to expand </summary>
93
+
94
+ | Hyperparameter | Value |
95
+ |--------------------------|---------|
96
+ | bootstrap | True |
97
+ | ccp_alpha | 0.0 |
98
+ | class_weight | |
99
+ | criterion | gini |
100
+ | max_depth | |
101
+ | max_features | sqrt |
102
+ | max_leaf_nodes | |
103
+ | max_samples | |
104
+ | min_impurity_decrease | 0.0 |
105
+ | min_samples_leaf | 1 |
106
+ | min_samples_split | 2 |
107
+ | min_weight_fraction_leaf | 0.0 |
108
+ | monotonic_cst | |
109
+ | n_estimators | 100 |
110
+ | n_jobs | |
111
+ | oob_score | False |
112
+ | random_state | 42 |
113
+ | verbose | 0 |
114
+ | warm_start | False |
115
+
116
+ </details>
117
+
118
+ ### Model Plot
119
+
120
+ <style>#sk-container-id-3 {/* 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;}
121
+ }#sk-container-id-3 {color: var(--sklearn-color-text);
122
+ }#sk-container-id-3 pre {padding: 0;
123
+ }#sk-container-id-3 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;
124
+ }#sk-container-id-3 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);
125
+ }#sk-container-id-3 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;
126
+ }#sk-container-id-3 div.sk-text-repr-fallback {display: none;
127
+ }div.sk-parallel-item,
128
+ div.sk-serial,
129
+ 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;
130
+ }/* Parallel-specific style estimator block */#sk-container-id-3 div.sk-parallel-item::after {content: "";width: 100%;border-bottom: 2px solid var(--sklearn-color-text-on-default-background);flex-grow: 1;
131
+ }#sk-container-id-3 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: var(--sklearn-color-background);position: relative;
132
+ }#sk-container-id-3 div.sk-parallel-item {display: flex;flex-direction: column;
133
+ }#sk-container-id-3 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;
134
+ }#sk-container-id-3 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;
135
+ }#sk-container-id-3 div.sk-parallel-item:only-child::after {width: 0;
136
+ }/* Serial-specific style estimator block */#sk-container-id-3 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: var(--sklearn-color-background);padding-right: 1em;padding-left: 1em;
137
+ }/* Toggleable style: style used for estimator/Pipeline/ColumnTransformer box that is
138
+ clickable and can be expanded/collapsed.
139
+ - Pipeline and ColumnTransformer use this feature and define the default style
140
+ - Estimators will overwrite some part of the style using the `sk-estimator` class
141
+ *//* Pipeline and ColumnTransformer style (default) */#sk-container-id-3 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);
142
+ }/* Toggleable label */
143
+ #sk-container-id-3 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.5em;box-sizing: border-box;text-align: center;
144
+ }#sk-container-id-3 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);
145
+ }#sk-container-id-3 label.sk-toggleable__label-arrow:hover:before {color: var(--sklearn-color-text);
146
+ }/* Toggleable content - dropdown */#sk-container-id-3 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;/* unfitted */background-color: var(--sklearn-color-unfitted-level-0);
147
+ }#sk-container-id-3 div.sk-toggleable__content.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
148
+ }#sk-container-id-3 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);
149
+ }#sk-container-id-3 div.sk-toggleable__content.fitted pre {/* unfitted */background-color: var(--sklearn-color-fitted-level-0);
150
+ }#sk-container-id-3 input.sk-toggleable__control:checked~div.sk-toggleable__content {/* Expand drop-down */max-height: 200px;max-width: 100%;overflow: auto;
151
+ }#sk-container-id-3 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: "▾";
152
+ }/* Pipeline/ColumnTransformer-specific style */#sk-container-id-3 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);
153
+ }#sk-container-id-3 div.sk-label.fitted input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: var(--sklearn-color-fitted-level-2);
154
+ }/* Estimator-specific style *//* Colorize estimator box */
155
+ #sk-container-id-3 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
156
+ }#sk-container-id-3 div.sk-estimator.fitted input.sk-toggleable__control:checked~label.sk-toggleable__label {/* fitted */background-color: var(--sklearn-color-fitted-level-2);
157
+ }#sk-container-id-3 div.sk-label label.sk-toggleable__label,
158
+ #sk-container-id-3 div.sk-label label {/* The background is the default theme color */color: var(--sklearn-color-text-on-default-background);
159
+ }/* On hover, darken the color of the background */
160
+ #sk-container-id-3 div.sk-label:hover label.sk-toggleable__label {color: var(--sklearn-color-text);background-color: var(--sklearn-color-unfitted-level-2);
161
+ }/* Label box, darken color on hover, fitted */
162
+ #sk-container-id-3 div.sk-label.fitted:hover label.sk-toggleable__label.fitted {color: var(--sklearn-color-text);background-color: var(--sklearn-color-fitted-level-2);
163
+ }/* Estimator label */#sk-container-id-3 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;
164
+ }#sk-container-id-3 div.sk-label-container {text-align: center;
165
+ }/* Estimator-specific */
166
+ #sk-container-id-3 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);
167
+ }#sk-container-id-3 div.sk-estimator.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
168
+ }/* on hover */
169
+ #sk-container-id-3 div.sk-estimator:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
170
+ }#sk-container-id-3 div.sk-estimator.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-2);
171
+ }/* Specification for estimator info (e.g. "i" and "?") *//* Common style for "i" and "?" */.sk-estimator-doc-link,
172
+ a:link.sk-estimator-doc-link,
173
+ 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);
174
+ }.sk-estimator-doc-link.fitted,
175
+ a:link.sk-estimator-doc-link.fitted,
176
+ a:visited.sk-estimator-doc-link.fitted {/* fitted */border: var(--sklearn-color-fitted-level-1) 1pt solid;color: var(--sklearn-color-fitted-level-1);
177
+ }/* On hover */
178
+ div.sk-estimator:hover .sk-estimator-doc-link:hover,
179
+ .sk-estimator-doc-link:hover,
180
+ div.sk-label-container:hover .sk-estimator-doc-link:hover,
181
+ .sk-estimator-doc-link:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
182
+ }div.sk-estimator.fitted:hover .sk-estimator-doc-link.fitted:hover,
183
+ .sk-estimator-doc-link.fitted:hover,
184
+ div.sk-label-container:hover .sk-estimator-doc-link.fitted:hover,
185
+ .sk-estimator-doc-link.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
186
+ }/* Span, style for the box shown on hovering the info icon */
187
+ .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);
188
+ }.sk-estimator-doc-link.fitted span {/* fitted */background: var(--sklearn-color-fitted-level-0);border: var(--sklearn-color-fitted-level-3);
189
+ }.sk-estimator-doc-link:hover span {display: block;
190
+ }/* "?"-specific style due to the `<a>` HTML tag */#sk-container-id-3 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;
191
+ }#sk-container-id-3 a.estimator_doc_link.fitted {/* fitted */border: var(--sklearn-color-fitted-level-1) 1pt solid;color: var(--sklearn-color-fitted-level-1);
192
+ }/* On hover */
193
+ #sk-container-id-3 a.estimator_doc_link:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
194
+ }#sk-container-id-3 a.estimator_doc_link.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-3);
195
+ }
196
+ </style><div id="sk-container-id-3" class="sk-top-container" style="overflow: auto;"><div class="sk-text-repr-fallback"><pre>RandomForestClassifier(random_state=42)</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"><div class="sk-estimator fitted sk-toggleable"><input class="sk-toggleable__control sk-hidden--visually" id="sk-estimator-id-3" type="checkbox" checked><label for="sk-estimator-id-3" class="sk-toggleable__label fitted sk-toggleable__label-arrow fitted">&nbsp;&nbsp;RandomForestClassifier<a class="sk-estimator-doc-link fitted" rel="noreferrer" target="_blank" href="https://scikit-learn.org/1.5/modules/generated/sklearn.ensemble.RandomForestClassifier.html">?<span>Documentation for RandomForestClassifier</span></a><span class="sk-estimator-doc-link fitted">i<span>Fitted</span></span></label><div class="sk-toggleable__content fitted"><pre>RandomForestClassifier(random_state=42)</pre></div> </div></div></div></div>
197
+
198
+ ## Evaluation Results
199
+
200
+ | Metric | Value |
201
+ |----------|----------|
202
+ | f1 score | 0.998926 |
203
+ | accuracy | 0.998926 |
204
+
205
+ # How to Get Started with the Model
206
+
207
+ [More Information Needed]
208
+
209
+ # Model Card Authors
210
+
211
+ This model card is written by following authors:
212
+
213
+ [More Information Needed]
214
+
215
+ # Model Card Contact
216
+
217
+ You can contact the model card authors through following channels:
218
+ [More Information Needed]
219
+
220
+ # Citation
221
+
222
+ Below you can find information related to citation.
223
+
224
+ **BibTeX:**
225
+ ```
226
+ [More Information Needed]
227
+ ```
228
+
229
+ # eval_method
230
+
231
+ The model is evaluated using test split, on accuracy and f1.
config.json ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sklearn": {
3
+ "columns": [
4
+ "CustomerID",
5
+ "Age",
6
+ "Tenure",
7
+ "Usage Frequency",
8
+ "Support Calls",
9
+ "Payment Delay",
10
+ "Total Spend",
11
+ "Last Interaction",
12
+ "Gender_Female",
13
+ "Gender_Male",
14
+ "Subscription Type_Basic",
15
+ "Subscription Type_Premium",
16
+ "Subscription Type_Standard",
17
+ "Contract Length_Annual",
18
+ "Contract Length_Monthly",
19
+ "Contract Length_Quarterly"
20
+ ],
21
+ "environment": [
22
+ "scikit-learn=1.5.2"
23
+ ],
24
+ "example_input": {
25
+ "Age": [
26
+ 30.0,
27
+ 39.0,
28
+ 34.0
29
+ ],
30
+ "Contract Length_Annual": [
31
+ 1.0,
32
+ 1.0,
33
+ 0.0
34
+ ],
35
+ "Contract Length_Monthly": [
36
+ 0.0,
37
+ 0.0,
38
+ 0.0
39
+ ],
40
+ "Contract Length_Quarterly": [
41
+ 0.0,
42
+ 0.0,
43
+ 1.0
44
+ ],
45
+ "CustomerID": [
46
+ 385551.0,
47
+ 261335.0,
48
+ 211059.0
49
+ ],
50
+ "Gender_Female": [
51
+ 0.0,
52
+ 1.0,
53
+ 0.0
54
+ ],
55
+ "Gender_Male": [
56
+ 1.0,
57
+ 0.0,
58
+ 1.0
59
+ ],
60
+ "Last Interaction": [
61
+ 20.0,
62
+ 9.0,
63
+ 12.0
64
+ ],
65
+ "Payment Delay": [
66
+ 19.0,
67
+ 7.0,
68
+ 24.0
69
+ ],
70
+ "Subscription Type_Basic": [
71
+ 1.0,
72
+ 1.0,
73
+ 0.0
74
+ ],
75
+ "Subscription Type_Premium": [
76
+ 0.0,
77
+ 0.0,
78
+ 0.0
79
+ ],
80
+ "Subscription Type_Standard": [
81
+ 0.0,
82
+ 0.0,
83
+ 1.0
84
+ ],
85
+ "Support Calls": [
86
+ 4.681441089545274,
87
+ 4.681441089545274,
88
+ 8.0
89
+ ],
90
+ "Tenure": [
91
+ 43.0,
92
+ 31.0,
93
+ 17.0
94
+ ],
95
+ "Total Spend": [
96
+ 914.15,
97
+ 657.3,
98
+ 511.21
99
+ ],
100
+ "Usage Frequency": [
101
+ 23.0,
102
+ 28.0,
103
+ 24.0
104
+ ]
105
+ },
106
+ "model": {
107
+ "file": "hw4_mnar25_classifier_mean.pkl"
108
+ },
109
+ "model_format": "pickle",
110
+ "task": "tabular-classification"
111
+ }
112
+ }
hw4_mnar25_classifier_mean.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:230481bf9737a2e2b55c1c9eab708bb292144f4a44d55e6871d9d95f60fc161a
3
+ size 14675257