pppereira3 commited on
Commit
65edfca
·
verified ·
1 Parent(s): 7b4ea68

update model

Browse files
Files changed (3) hide show
  1. README.md +81 -78
  2. config.json +12 -12
  3. hw4_mmcar25_classifier.pkl +2 -2
README.md CHANGED
@@ -9,31 +9,25 @@ model_file: hw4_mmcar25_classifier.pkl
9
  widget:
10
  - structuredData:
11
  Age:
12
- - 30.0
13
  - 39.0
14
  - 34.0
15
  Contract Length_Annual:
16
  - true
17
  - true
18
- - false
19
  Contract Length_Monthly:
20
  - false
21
  - false
22
- - false
23
  Contract Length_Quarterly:
24
  - false
25
  - false
26
- - true
27
  CustomerID:
28
  - 385551.0
29
  - 261335.0
30
- - 211059.0
31
  Gender_Female:
32
  - false
33
- - true
34
- - false
35
  Gender_Male:
36
- - true
37
  - false
38
  - true
39
  Last Interaction:
@@ -43,11 +37,9 @@ widget:
43
  Payment Delay:
44
  - 19.0
45
  - 7.0
46
- - 24.0
47
  Subscription Type_Basic:
48
  - true
49
- - true
50
- - false
51
  Subscription Type_Premium:
52
  - false
53
  - false
@@ -71,7 +63,7 @@ widget:
71
  Usage Frequency:
72
  - 23.0
73
  - 28.0
74
- - 24.0
75
  ---
76
 
77
  # Model description
@@ -91,83 +83,94 @@ widget:
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 | |
113
- | verbose | 0 |
114
- | warm_start | False |
 
 
 
 
 
 
 
 
 
 
 
115
 
116
  </details>
117
 
118
  ### Model Plot
119
 
120
- <style>#sk-container-id-2 {/* 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-2 {color: var(--sklearn-color-text);
122
- }#sk-container-id-2 pre {padding: 0;
123
- }#sk-container-id-2 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-2 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-2 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-2 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-2 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-2 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: var(--sklearn-color-background);position: relative;
132
- }#sk-container-id-2 div.sk-parallel-item {display: flex;flex-direction: column;
133
- }#sk-container-id-2 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;
134
- }#sk-container-id-2 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;
135
- }#sk-container-id-2 div.sk-parallel-item:only-child::after {width: 0;
136
- }/* Serial-specific style estimator block */#sk-container-id-2 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-2 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-2 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-2 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-2 label.sk-toggleable__label-arrow:hover:before {color: var(--sklearn-color-text);
146
- }/* Toggleable content - dropdown */#sk-container-id-2 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-2 div.sk-toggleable__content.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
148
- }#sk-container-id-2 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-2 div.sk-toggleable__content.fitted pre {/* unfitted */background-color: var(--sklearn-color-fitted-level-0);
150
- }#sk-container-id-2 input.sk-toggleable__control:checked~div.sk-toggleable__content {/* Expand drop-down */max-height: 200px;max-width: 100%;overflow: auto;
151
- }#sk-container-id-2 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: "▾";
152
- }/* Pipeline/ColumnTransformer-specific style */#sk-container-id-2 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-2 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-2 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-2 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-2 div.sk-label label.sk-toggleable__label,
158
- #sk-container-id-2 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-2 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-2 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-2 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;
164
- }#sk-container-id-2 div.sk-label-container {text-align: center;
165
  }/* Estimator-specific */
166
- #sk-container-id-2 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-2 div.sk-estimator.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
168
  }/* on hover */
169
- #sk-container-id-2 div.sk-estimator:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
170
- }#sk-container-id-2 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);
@@ -187,20 +190,20 @@ div.sk-label-container:hover .sk-estimator-doc-link.fitted:hover,
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-2 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-2 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-2 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-2 a.estimator_doc_link.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-3);
195
  }
196
- </style><div id="sk-container-id-2" class="sk-top-container" style="overflow: auto;"><div class="sk-text-repr-fallback"><pre>RandomForestClassifier()</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-2" type="checkbox" checked><label for="sk-estimator-id-2" 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()</pre></div> </div></div></div></div>
197
 
198
  ## Evaluation Results
199
 
200
  | Metric | Value |
201
  |----------|----------|
202
- | f1 score | 0.982149 |
203
- | accuracy | 0.979894 |
204
 
205
  # How to Get Started with the Model
206
 
 
9
  widget:
10
  - structuredData:
11
  Age:
12
+ - .nan
13
  - 39.0
14
  - 34.0
15
  Contract Length_Annual:
16
  - true
17
  - true
 
18
  Contract Length_Monthly:
19
  - false
20
  - false
 
21
  Contract Length_Quarterly:
22
  - false
23
  - false
 
24
  CustomerID:
25
  - 385551.0
26
  - 261335.0
27
+ - .nan
28
  Gender_Female:
29
  - false
 
 
30
  Gender_Male:
 
31
  - false
32
  - true
33
  Last Interaction:
 
37
  Payment Delay:
38
  - 19.0
39
  - 7.0
40
+ - .nan
41
  Subscription Type_Basic:
42
  - true
 
 
43
  Subscription Type_Premium:
44
  - false
45
  - false
 
63
  Usage Frequency:
64
  - 23.0
65
  - 28.0
66
+ - .nan
67
  ---
68
 
69
  # Model description
 
83
  <details>
84
  <summary> Click to expand </summary>
85
 
86
+ | Hyperparameter | Value |
87
+ |------------------------------|------------------------------------------------------------------|
88
+ | memory | |
89
+ | steps | [('Imputer', SimpleImputer()), ('rf', RandomForestClassifier())] |
90
+ | verbose | False |
91
+ | Imputer | SimpleImputer() |
92
+ | rf | RandomForestClassifier() |
93
+ | Imputer__add_indicator | False |
94
+ | Imputer__copy | True |
95
+ | Imputer__fill_value | |
96
+ | Imputer__keep_empty_features | False |
97
+ | Imputer__missing_values | nan |
98
+ | Imputer__strategy | mean |
99
+ | rf__bootstrap | True |
100
+ | rf__ccp_alpha | 0.0 |
101
+ | rf__class_weight | |
102
+ | rf__criterion | gini |
103
+ | rf__max_depth | |
104
+ | rf__max_features | sqrt |
105
+ | rf__max_leaf_nodes | |
106
+ | rf__max_samples | |
107
+ | rf__min_impurity_decrease | 0.0 |
108
+ | rf__min_samples_leaf | 1 |
109
+ | rf__min_samples_split | 2 |
110
+ | rf__min_weight_fraction_leaf | 0.0 |
111
+ | rf__monotonic_cst | |
112
+ | rf__n_estimators | 100 |
113
+ | rf__n_jobs | |
114
+ | rf__oob_score | False |
115
+ | rf__random_state | |
116
+ | rf__verbose | 0 |
117
+ | rf__warm_start | False |
118
 
119
  </details>
120
 
121
  ### Model Plot
122
 
123
+ <style>#sk-container-id-5 {/* 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;}
124
+ }#sk-container-id-5 {color: var(--sklearn-color-text);
125
+ }#sk-container-id-5 pre {padding: 0;
126
+ }#sk-container-id-5 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;
127
+ }#sk-container-id-5 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);
128
+ }#sk-container-id-5 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;
129
+ }#sk-container-id-5 div.sk-text-repr-fallback {display: none;
130
  }div.sk-parallel-item,
131
  div.sk-serial,
132
  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;
133
+ }/* Parallel-specific style estimator block */#sk-container-id-5 div.sk-parallel-item::after {content: "";width: 100%;border-bottom: 2px solid var(--sklearn-color-text-on-default-background);flex-grow: 1;
134
+ }#sk-container-id-5 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: var(--sklearn-color-background);position: relative;
135
+ }#sk-container-id-5 div.sk-parallel-item {display: flex;flex-direction: column;
136
+ }#sk-container-id-5 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;
137
+ }#sk-container-id-5 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;
138
+ }#sk-container-id-5 div.sk-parallel-item:only-child::after {width: 0;
139
+ }/* Serial-specific style estimator block */#sk-container-id-5 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: var(--sklearn-color-background);padding-right: 1em;padding-left: 1em;
140
  }/* Toggleable style: style used for estimator/Pipeline/ColumnTransformer box that is
141
  clickable and can be expanded/collapsed.
142
  - Pipeline and ColumnTransformer use this feature and define the default style
143
  - Estimators will overwrite some part of the style using the `sk-estimator` class
144
+ *//* Pipeline and ColumnTransformer style (default) */#sk-container-id-5 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);
145
  }/* Toggleable label */
146
+ #sk-container-id-5 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.5em;box-sizing: border-box;text-align: center;
147
+ }#sk-container-id-5 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);
148
+ }#sk-container-id-5 label.sk-toggleable__label-arrow:hover:before {color: var(--sklearn-color-text);
149
+ }/* Toggleable content - dropdown */#sk-container-id-5 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;/* unfitted */background-color: var(--sklearn-color-unfitted-level-0);
150
+ }#sk-container-id-5 div.sk-toggleable__content.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
151
+ }#sk-container-id-5 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);
152
+ }#sk-container-id-5 div.sk-toggleable__content.fitted pre {/* unfitted */background-color: var(--sklearn-color-fitted-level-0);
153
+ }#sk-container-id-5 input.sk-toggleable__control:checked~div.sk-toggleable__content {/* Expand drop-down */max-height: 200px;max-width: 100%;overflow: auto;
154
+ }#sk-container-id-5 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: "▾";
155
+ }/* Pipeline/ColumnTransformer-specific style */#sk-container-id-5 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);
156
+ }#sk-container-id-5 div.sk-label.fitted input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: var(--sklearn-color-fitted-level-2);
157
  }/* Estimator-specific style *//* Colorize estimator box */
158
+ #sk-container-id-5 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
159
+ }#sk-container-id-5 div.sk-estimator.fitted input.sk-toggleable__control:checked~label.sk-toggleable__label {/* fitted */background-color: var(--sklearn-color-fitted-level-2);
160
+ }#sk-container-id-5 div.sk-label label.sk-toggleable__label,
161
+ #sk-container-id-5 div.sk-label label {/* The background is the default theme color */color: var(--sklearn-color-text-on-default-background);
162
  }/* On hover, darken the color of the background */
163
+ #sk-container-id-5 div.sk-label:hover label.sk-toggleable__label {color: var(--sklearn-color-text);background-color: var(--sklearn-color-unfitted-level-2);
164
  }/* Label box, darken color on hover, fitted */
165
+ #sk-container-id-5 div.sk-label.fitted:hover label.sk-toggleable__label.fitted {color: var(--sklearn-color-text);background-color: var(--sklearn-color-fitted-level-2);
166
+ }/* Estimator label */#sk-container-id-5 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;
167
+ }#sk-container-id-5 div.sk-label-container {text-align: center;
168
  }/* Estimator-specific */
169
+ #sk-container-id-5 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);
170
+ }#sk-container-id-5 div.sk-estimator.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
171
  }/* on hover */
172
+ #sk-container-id-5 div.sk-estimator:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
173
+ }#sk-container-id-5 div.sk-estimator.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-2);
174
  }/* Specification for estimator info (e.g. "i" and "?") *//* Common style for "i" and "?" */.sk-estimator-doc-link,
175
  a:link.sk-estimator-doc-link,
176
  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);
 
190
  .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);
191
  }.sk-estimator-doc-link.fitted span {/* fitted */background: var(--sklearn-color-fitted-level-0);border: var(--sklearn-color-fitted-level-3);
192
  }.sk-estimator-doc-link:hover span {display: block;
193
+ }/* "?"-specific style due to the `<a>` HTML tag */#sk-container-id-5 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;
194
+ }#sk-container-id-5 a.estimator_doc_link.fitted {/* fitted */border: var(--sklearn-color-fitted-level-1) 1pt solid;color: var(--sklearn-color-fitted-level-1);
195
  }/* On hover */
196
+ #sk-container-id-5 a.estimator_doc_link:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
197
+ }#sk-container-id-5 a.estimator_doc_link.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-3);
198
  }
199
+ </style><div id="sk-container-id-5" class="sk-top-container" style="overflow: auto;"><div class="sk-text-repr-fallback"><pre>Pipeline(steps=[(&#x27;Imputer&#x27;, SimpleImputer()), (&#x27;rf&#x27;, RandomForestClassifier())])</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-5" type="checkbox" ><label for="sk-estimator-id-5" class="sk-toggleable__label fitted sk-toggleable__label-arrow fitted">&nbsp;&nbsp;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=[(&#x27;Imputer&#x27;, SimpleImputer()), (&#x27;rf&#x27;, RandomForestClassifier())])</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-6" type="checkbox" ><label for="sk-estimator-id-6" class="sk-toggleable__label fitted sk-toggleable__label-arrow fitted">&nbsp;SimpleImputer<a class="sk-estimator-doc-link fitted" rel="noreferrer" target="_blank" href="https://scikit-learn.org/1.5/modules/generated/sklearn.impute.SimpleImputer.html">?<span>Documentation for SimpleImputer</span></a></label><div class="sk-toggleable__content fitted"><pre>SimpleImputer()</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-7" type="checkbox" ><label for="sk-estimator-id-7" class="sk-toggleable__label fitted sk-toggleable__label-arrow fitted">&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></label><div class="sk-toggleable__content fitted"><pre>RandomForestClassifier()</pre></div> </div></div></div></div></div></div>
200
 
201
  ## Evaluation Results
202
 
203
  | Metric | Value |
204
  |----------|----------|
205
+ | f1 score | 0.983605 |
206
+ | accuracy | 0.981512 |
207
 
208
  # How to Get Started with the Model
209
 
config.json CHANGED
@@ -23,37 +23,37 @@
23
  ],
24
  "example_input": {
25
  "Age": [
26
- 30.0,
27
  39.0,
28
  34.0
29
  ],
30
  "Contract Length_Annual": [
31
  true,
32
  true,
33
- false
34
  ],
35
  "Contract Length_Monthly": [
36
  false,
37
- false,
38
  false
39
  ],
40
  "Contract Length_Quarterly": [
41
  false,
42
  false,
43
- true
44
  ],
45
  "CustomerID": [
46
  385551.0,
47
  261335.0,
48
- 211059.0
49
  ],
50
  "Gender_Female": [
51
  false,
52
- true,
53
- false
54
  ],
55
  "Gender_Male": [
56
- true,
57
  false,
58
  true
59
  ],
@@ -65,12 +65,12 @@
65
  "Payment Delay": [
66
  19.0,
67
  7.0,
68
- 24.0
69
  ],
70
  "Subscription Type_Basic": [
 
71
  true,
72
- true,
73
- false
74
  ],
75
  "Subscription Type_Premium": [
76
  false,
@@ -100,7 +100,7 @@
100
  "Usage Frequency": [
101
  23.0,
102
  28.0,
103
- 24.0
104
  ]
105
  },
106
  "model": {
 
23
  ],
24
  "example_input": {
25
  "Age": [
26
+ NaN,
27
  39.0,
28
  34.0
29
  ],
30
  "Contract Length_Annual": [
31
  true,
32
  true,
33
+ null
34
  ],
35
  "Contract Length_Monthly": [
36
  false,
37
+ null,
38
  false
39
  ],
40
  "Contract Length_Quarterly": [
41
  false,
42
  false,
43
+ null
44
  ],
45
  "CustomerID": [
46
  385551.0,
47
  261335.0,
48
+ NaN
49
  ],
50
  "Gender_Female": [
51
  false,
52
+ null,
53
+ null
54
  ],
55
  "Gender_Male": [
56
+ null,
57
  false,
58
  true
59
  ],
 
65
  "Payment Delay": [
66
  19.0,
67
  7.0,
68
+ NaN
69
  ],
70
  "Subscription Type_Basic": [
71
+ null,
72
  true,
73
+ null
 
74
  ],
75
  "Subscription Type_Premium": [
76
  false,
 
100
  "Usage Frequency": [
101
  23.0,
102
  28.0,
103
+ NaN
104
  ]
105
  },
106
  "model": {
hw4_mmcar25_classifier.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1a7e948ff6ef8caae8f3d38b63d37834d84069dac1a57facb6e344af77840be2
3
- size 105970876
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71d89be0886e8af4f4f2be40bccdf5eae034e309708d8744d35064511c0a8a65
3
+ size 106435488