pppereira3 commited on
Commit
43322ff
·
verified ·
1 Parent(s): 0a75252

update model

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