pppereira3 commited on
Commit
010cc69
·
verified ·
1 Parent(s): 56dfbeb

update model

Browse files
Files changed (3) hide show
  1. README.md +226 -0
  2. config.json +94 -0
  3. hw4_baseline_regressor.pkl +3 -0
README.md ADDED
@@ -0,0 +1,226 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: sklearn
3
+ tags:
4
+ - sklearn
5
+ - skops
6
+ - tabular-classification
7
+ model_format: pickle
8
+ model_file: hw4_baseline_regressor.pkl
9
+ widget:
10
+ - structuredData:
11
+ households:
12
+ - 254.0
13
+ - 957.0
14
+ - 801.0
15
+ housing_median_age:
16
+ - 20.0
17
+ - 2.0
18
+ - 31.0
19
+ latitude:
20
+ - 32.79
21
+ - 38.01
22
+ - 33.92
23
+ longitude:
24
+ - -117.24
25
+ - -121.29
26
+ - -118.14
27
+ median_income:
28
+ - 3.1838
29
+ - 4.4871
30
+ - 3.2237
31
+ ocean_proximity_<1H OCEAN:
32
+ - false
33
+ - false
34
+ - true
35
+ ocean_proximity_INLAND:
36
+ - false
37
+ - true
38
+ - false
39
+ ocean_proximity_ISLAND:
40
+ - false
41
+ - false
42
+ - false
43
+ ocean_proximity_NEAR BAY:
44
+ - false
45
+ - false
46
+ - false
47
+ ocean_proximity_NEAR OCEAN:
48
+ - true
49
+ - false
50
+ - false
51
+ population:
52
+ - 525.0
53
+ - 3327.0
54
+ - 2313.0
55
+ total_bedrooms:
56
+ - 278.0
57
+ - 1116.0
58
+ - 853.0
59
+ total_rooms:
60
+ - 961.0
61
+ - 6403.0
62
+ - 3731.0
63
+ ---
64
+
65
+ # Model description
66
+
67
+ [More Information Needed]
68
+
69
+ ## Intended uses & limitations
70
+
71
+ [More Information Needed]
72
+
73
+ ## Training Procedure
74
+
75
+ [More Information Needed]
76
+
77
+ ### Hyperparameters
78
+
79
+ <details>
80
+ <summary> Click to expand </summary>
81
+
82
+ | Hyperparameter | Value |
83
+ |------------------------------|-----------------------------------------------------------------|
84
+ | memory | |
85
+ | steps | [('scaler', StandardScaler()), ('rf', RandomForestRegressor())] |
86
+ | verbose | False |
87
+ | scaler | StandardScaler() |
88
+ | rf | RandomForestRegressor() |
89
+ | scaler__copy | True |
90
+ | scaler__with_mean | True |
91
+ | scaler__with_std | True |
92
+ | rf__bootstrap | True |
93
+ | rf__ccp_alpha | 0.0 |
94
+ | rf__criterion | squared_error |
95
+ | rf__max_depth | |
96
+ | rf__max_features | 1.0 |
97
+ | rf__max_leaf_nodes | |
98
+ | rf__max_samples | |
99
+ | rf__min_impurity_decrease | 0.0 |
100
+ | rf__min_samples_leaf | 1 |
101
+ | rf__min_samples_split | 2 |
102
+ | rf__min_weight_fraction_leaf | 0.0 |
103
+ | rf__monotonic_cst | |
104
+ | rf__n_estimators | 100 |
105
+ | rf__n_jobs | |
106
+ | rf__oob_score | False |
107
+ | rf__random_state | |
108
+ | rf__verbose | 0 |
109
+ | rf__warm_start | False |
110
+
111
+ </details>
112
+
113
+ ### Model Plot
114
+
115
+ <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;}
116
+ }#sk-container-id-3 {color: var(--sklearn-color-text);
117
+ }#sk-container-id-3 pre {padding: 0;
118
+ }#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;
119
+ }#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);
120
+ }#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;
121
+ }#sk-container-id-3 div.sk-text-repr-fallback {display: none;
122
+ }div.sk-parallel-item,
123
+ div.sk-serial,
124
+ 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;
125
+ }/* 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;
126
+ }#sk-container-id-3 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: var(--sklearn-color-background);position: relative;
127
+ }#sk-container-id-3 div.sk-parallel-item {display: flex;flex-direction: column;
128
+ }#sk-container-id-3 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;
129
+ }#sk-container-id-3 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;
130
+ }#sk-container-id-3 div.sk-parallel-item:only-child::after {width: 0;
131
+ }/* 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;
132
+ }/* Toggleable style: style used for estimator/Pipeline/ColumnTransformer box that is
133
+ clickable and can be expanded/collapsed.
134
+ - Pipeline and ColumnTransformer use this feature and define the default style
135
+ - Estimators will overwrite some part of the style using the `sk-estimator` class
136
+ *//* 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);
137
+ }/* Toggleable label */
138
+ #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;
139
+ }#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);
140
+ }#sk-container-id-3 label.sk-toggleable__label-arrow:hover:before {color: var(--sklearn-color-text);
141
+ }/* 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);
142
+ }#sk-container-id-3 div.sk-toggleable__content.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
143
+ }#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);
144
+ }#sk-container-id-3 div.sk-toggleable__content.fitted pre {/* unfitted */background-color: var(--sklearn-color-fitted-level-0);
145
+ }#sk-container-id-3 input.sk-toggleable__control:checked~div.sk-toggleable__content {/* Expand drop-down */max-height: 200px;max-width: 100%;overflow: auto;
146
+ }#sk-container-id-3 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: "▾";
147
+ }/* 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);
148
+ }#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);
149
+ }/* Estimator-specific style *//* Colorize estimator box */
150
+ #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);
151
+ }#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);
152
+ }#sk-container-id-3 div.sk-label label.sk-toggleable__label,
153
+ #sk-container-id-3 div.sk-label label {/* The background is the default theme color */color: var(--sklearn-color-text-on-default-background);
154
+ }/* On hover, darken the color of the background */
155
+ #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);
156
+ }/* Label box, darken color on hover, fitted */
157
+ #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);
158
+ }/* Estimator label */#sk-container-id-3 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;
159
+ }#sk-container-id-3 div.sk-label-container {text-align: center;
160
+ }/* Estimator-specific */
161
+ #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);
162
+ }#sk-container-id-3 div.sk-estimator.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
163
+ }/* on hover */
164
+ #sk-container-id-3 div.sk-estimator:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
165
+ }#sk-container-id-3 div.sk-estimator.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-2);
166
+ }/* Specification for estimator info (e.g. "i" and "?") *//* Common style for "i" and "?" */.sk-estimator-doc-link,
167
+ a:link.sk-estimator-doc-link,
168
+ 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);
169
+ }.sk-estimator-doc-link.fitted,
170
+ a:link.sk-estimator-doc-link.fitted,
171
+ a:visited.sk-estimator-doc-link.fitted {/* fitted */border: var(--sklearn-color-fitted-level-1) 1pt solid;color: var(--sklearn-color-fitted-level-1);
172
+ }/* On hover */
173
+ div.sk-estimator:hover .sk-estimator-doc-link:hover,
174
+ .sk-estimator-doc-link:hover,
175
+ div.sk-label-container:hover .sk-estimator-doc-link:hover,
176
+ .sk-estimator-doc-link:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
177
+ }div.sk-estimator.fitted:hover .sk-estimator-doc-link.fitted:hover,
178
+ .sk-estimator-doc-link.fitted:hover,
179
+ div.sk-label-container:hover .sk-estimator-doc-link.fitted:hover,
180
+ .sk-estimator-doc-link.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
181
+ }/* Span, style for the box shown on hovering the info icon */
182
+ .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);
183
+ }.sk-estimator-doc-link.fitted span {/* fitted */background: var(--sklearn-color-fitted-level-0);border: var(--sklearn-color-fitted-level-3);
184
+ }.sk-estimator-doc-link:hover span {display: block;
185
+ }/* "?"-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;
186
+ }#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);
187
+ }/* On hover */
188
+ #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;
189
+ }#sk-container-id-3 a.estimator_doc_link.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-3);
190
+ }
191
+ </style><div id="sk-container-id-3" class="sk-top-container" style="overflow: auto;"><div class="sk-text-repr-fallback"><pre>Pipeline(steps=[(&#x27;scaler&#x27;, StandardScaler()), (&#x27;rf&#x27;, RandomForestRegressor())])</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-3" type="checkbox" ><label for="sk-estimator-id-3" 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;scaler&#x27;, StandardScaler()), (&#x27;rf&#x27;, RandomForestRegressor())])</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-4" type="checkbox" ><label for="sk-estimator-id-4" class="sk-toggleable__label fitted sk-toggleable__label-arrow fitted">&nbsp;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-5" type="checkbox" ><label for="sk-estimator-id-5" class="sk-toggleable__label fitted sk-toggleable__label-arrow fitted">&nbsp;RandomForestRegressor<a class="sk-estimator-doc-link fitted" rel="noreferrer" target="_blank" href="https://scikit-learn.org/1.5/modules/generated/sklearn.ensemble.RandomForestRegressor.html">?<span>Documentation for RandomForestRegressor</span></a></label><div class="sk-toggleable__content fitted"><pre>RandomForestRegressor()</pre></div> </div></div></div></div></div></div>
192
+
193
+ ## Evaluation Results
194
+
195
+ | Metric | Value |
196
+ |----------|---------|
197
+ | f1 score | |
198
+ | accuracy | |
199
+
200
+ # How to Get Started with the Model
201
+
202
+ [More Information Needed]
203
+
204
+ # Model Card Authors
205
+
206
+ This model card is written by following authors:
207
+
208
+ [More Information Needed]
209
+
210
+ # Model Card Contact
211
+
212
+ You can contact the model card authors through following channels:
213
+ [More Information Needed]
214
+
215
+ # Citation
216
+
217
+ Below you can find information related to citation.
218
+
219
+ **BibTeX:**
220
+ ```
221
+ [More Information Needed]
222
+ ```
223
+
224
+ # eval_method
225
+
226
+ The model is evaluated using test split, on accuracy and f1.
config.json ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sklearn": {
3
+ "columns": [
4
+ "longitude",
5
+ "latitude",
6
+ "housing_median_age",
7
+ "total_rooms",
8
+ "total_bedrooms",
9
+ "population",
10
+ "households",
11
+ "median_income",
12
+ "ocean_proximity_<1H OCEAN",
13
+ "ocean_proximity_INLAND",
14
+ "ocean_proximity_ISLAND",
15
+ "ocean_proximity_NEAR BAY",
16
+ "ocean_proximity_NEAR OCEAN"
17
+ ],
18
+ "environment": [
19
+ "scikit-learn=1.5.2"
20
+ ],
21
+ "example_input": {
22
+ "households": [
23
+ 254.0,
24
+ 957.0,
25
+ 801.0
26
+ ],
27
+ "housing_median_age": [
28
+ 20.0,
29
+ 2.0,
30
+ 31.0
31
+ ],
32
+ "latitude": [
33
+ 32.79,
34
+ 38.01,
35
+ 33.92
36
+ ],
37
+ "longitude": [
38
+ -117.24,
39
+ -121.29,
40
+ -118.14
41
+ ],
42
+ "median_income": [
43
+ 3.1838,
44
+ 4.4871,
45
+ 3.2237
46
+ ],
47
+ "ocean_proximity_<1H OCEAN": [
48
+ false,
49
+ false,
50
+ true
51
+ ],
52
+ "ocean_proximity_INLAND": [
53
+ false,
54
+ true,
55
+ false
56
+ ],
57
+ "ocean_proximity_ISLAND": [
58
+ false,
59
+ false,
60
+ false
61
+ ],
62
+ "ocean_proximity_NEAR BAY": [
63
+ false,
64
+ false,
65
+ false
66
+ ],
67
+ "ocean_proximity_NEAR OCEAN": [
68
+ true,
69
+ false,
70
+ false
71
+ ],
72
+ "population": [
73
+ 525.0,
74
+ 3327.0,
75
+ 2313.0
76
+ ],
77
+ "total_bedrooms": [
78
+ 278.0,
79
+ 1116.0,
80
+ 853.0
81
+ ],
82
+ "total_rooms": [
83
+ 961.0,
84
+ 6403.0,
85
+ 3731.0
86
+ ]
87
+ },
88
+ "model": {
89
+ "file": "hw4_baseline_regressor.pkl"
90
+ },
91
+ "model_format": "pickle",
92
+ "task": "tabular-classification"
93
+ }
94
+ }
hw4_baseline_regressor.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30e177da608ec1657c5ed726782e7df0f19f665ccb02792e1fd9f8c4927872b1
3
+ size 125779013