EngrSamad commited on
Commit
82573dd
1 Parent(s): a3438be

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +309 -0
README.md ADDED
@@ -0,0 +1,309 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: sklearn
4
+ tags:
5
+ - sklearn
6
+ - skops
7
+ - tabular-classification
8
+ model_format: pickle
9
+ model_file: breast.pkl
10
+ widget:
11
+ - structuredData:
12
+ area error:
13
+ - 30.29
14
+ - 96.05
15
+ - 48.31
16
+ compactness error:
17
+ - 0.01911
18
+ - 0.01652
19
+ - 0.01484
20
+ concave points error:
21
+ - 0.01037
22
+ - 0.0137
23
+ - 0.01093
24
+ concavity error:
25
+ - 0.02701
26
+ - 0.02269
27
+ - 0.02813
28
+ fractal dimension error:
29
+ - 0.003586
30
+ - 0.001698
31
+ - 0.002461
32
+ mean area:
33
+ - 481.9
34
+ - 1130.0
35
+ - 748.9
36
+ mean compactness:
37
+ - 0.1058
38
+ - 0.1029
39
+ - 0.1223
40
+ mean concave points:
41
+ - 0.03821
42
+ - 0.07951
43
+ - 0.08087
44
+ mean concavity:
45
+ - 0.08005
46
+ - 0.108
47
+ - 0.1466
48
+ mean fractal dimension:
49
+ - 0.06373
50
+ - 0.05461
51
+ - 0.05796
52
+ mean perimeter:
53
+ - 81.09
54
+ - 123.6
55
+ - 101.7
56
+ mean radius:
57
+ - 12.47
58
+ - 18.94
59
+ - 15.46
60
+ mean smoothness:
61
+ - 0.09965
62
+ - 0.09009
63
+ - 0.1092
64
+ mean symmetry:
65
+ - 0.1925
66
+ - 0.1582
67
+ - 0.1931
68
+ mean texture:
69
+ - 18.6
70
+ - 21.31
71
+ - 19.48
72
+ perimeter error:
73
+ - 2.497
74
+ - 5.486
75
+ - 3.094
76
+ radius error:
77
+ - 0.3961
78
+ - 0.7888
79
+ - 0.4743
80
+ smoothness error:
81
+ - 0.006953
82
+ - 0.004444
83
+ - 0.00624
84
+ symmetry error:
85
+ - 0.01782
86
+ - 0.01386
87
+ - 0.01397
88
+ texture error:
89
+ - 1.044
90
+ - 0.7975
91
+ - 0.7859
92
+ worst area:
93
+ - 677.9
94
+ - 1866.0
95
+ - 1156.0
96
+ worst compactness:
97
+ - 0.2378
98
+ - 0.2336
99
+ - 0.2394
100
+ worst concave points:
101
+ - 0.1015
102
+ - 0.1789
103
+ - 0.1514
104
+ worst concavity:
105
+ - 0.2671
106
+ - 0.2687
107
+ - 0.3791
108
+ worst fractal dimension:
109
+ - 0.0875
110
+ - 0.06589
111
+ - 0.08019
112
+ worst perimeter:
113
+ - 96.05
114
+ - 165.9
115
+ - 124.9
116
+ worst radius:
117
+ - 14.97
118
+ - 24.86
119
+ - 19.26
120
+ worst smoothness:
121
+ - 0.1426
122
+ - 0.1193
123
+ - 0.1546
124
+ worst symmetry:
125
+ - 0.3014
126
+ - 0.2551
127
+ - 0.2837
128
+ worst texture:
129
+ - 24.64
130
+ - 26.58
131
+ - 26.0
132
+ ---
133
+
134
+ # Model description
135
+
136
+ [More Information Needed]
137
+
138
+ ## Intended uses & limitations
139
+
140
+ [More Information Needed]
141
+
142
+ ## Training Procedure
143
+
144
+ [More Information Needed]
145
+
146
+ ### Hyperparameters
147
+
148
+ <details>
149
+ <summary> Click to expand </summary>
150
+
151
+ | Hyperparameter | Value |
152
+ |--------------------------|---------|
153
+ | ccp_alpha | 0.0 |
154
+ | class_weight | |
155
+ | criterion | gini |
156
+ | max_depth | |
157
+ | max_features | |
158
+ | max_leaf_nodes | |
159
+ | min_impurity_decrease | 0.0 |
160
+ | min_samples_leaf | 1 |
161
+ | min_samples_split | 2 |
162
+ | min_weight_fraction_leaf | 0.0 |
163
+ | monotonic_cst | |
164
+ | random_state | |
165
+ | splitter | best |
166
+
167
+ </details>
168
+
169
+ ### Model Plot
170
+
171
+ <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;}
172
+ }#sk-container-id-1 {color: var(--sklearn-color-text);
173
+ }#sk-container-id-1 pre {padding: 0;
174
+ }#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;
175
+ }#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);
176
+ }#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;
177
+ }#sk-container-id-1 div.sk-text-repr-fallback {display: none;
178
+ }div.sk-parallel-item,
179
+ div.sk-serial,
180
+ 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;
181
+ }/* 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;
182
+ }#sk-container-id-1 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: var(--sklearn-color-background);position: relative;
183
+ }#sk-container-id-1 div.sk-parallel-item {display: flex;flex-direction: column;
184
+ }#sk-container-id-1 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;
185
+ }#sk-container-id-1 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;
186
+ }#sk-container-id-1 div.sk-parallel-item:only-child::after {width: 0;
187
+ }/* 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;
188
+ }/* Toggleable style: style used for estimator/Pipeline/ColumnTransformer box that is
189
+ clickable and can be expanded/collapsed.
190
+ - Pipeline and ColumnTransformer use this feature and define the default style
191
+ - Estimators will overwrite some part of the style using the `sk-estimator` class
192
+ *//* 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);
193
+ }/* Toggleable label */
194
+ #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;
195
+ }#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);
196
+ }#sk-container-id-1 label.sk-toggleable__label-arrow:hover:before {color: var(--sklearn-color-text);
197
+ }/* 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);
198
+ }#sk-container-id-1 div.sk-toggleable__content.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
199
+ }#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);
200
+ }#sk-container-id-1 div.sk-toggleable__content.fitted pre {/* unfitted */background-color: var(--sklearn-color-fitted-level-0);
201
+ }#sk-container-id-1 input.sk-toggleable__control:checked~div.sk-toggleable__content {/* Expand drop-down */max-height: 200px;max-width: 100%;overflow: auto;
202
+ }#sk-container-id-1 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: "▾";
203
+ }/* 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);
204
+ }#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);
205
+ }/* Estimator-specific style *//* Colorize estimator box */
206
+ #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);
207
+ }#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);
208
+ }#sk-container-id-1 div.sk-label label.sk-toggleable__label,
209
+ #sk-container-id-1 div.sk-label label {/* The background is the default theme color */color: var(--sklearn-color-text-on-default-background);
210
+ }/* On hover, darken the color of the background */
211
+ #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);
212
+ }/* Label box, darken color on hover, fitted */
213
+ #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);
214
+ }/* Estimator label */#sk-container-id-1 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;
215
+ }#sk-container-id-1 div.sk-label-container {text-align: center;
216
+ }/* Estimator-specific */
217
+ #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);
218
+ }#sk-container-id-1 div.sk-estimator.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
219
+ }/* on hover */
220
+ #sk-container-id-1 div.sk-estimator:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
221
+ }#sk-container-id-1 div.sk-estimator.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-2);
222
+ }/* Specification for estimator info (e.g. "i" and "?") *//* Common style for "i" and "?" */.sk-estimator-doc-link,
223
+ a:link.sk-estimator-doc-link,
224
+ 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);
225
+ }.sk-estimator-doc-link.fitted,
226
+ a:link.sk-estimator-doc-link.fitted,
227
+ a:visited.sk-estimator-doc-link.fitted {/* fitted */border: var(--sklearn-color-fitted-level-1) 1pt solid;color: var(--sklearn-color-fitted-level-1);
228
+ }/* On hover */
229
+ div.sk-estimator:hover .sk-estimator-doc-link:hover,
230
+ .sk-estimator-doc-link:hover,
231
+ div.sk-label-container:hover .sk-estimator-doc-link:hover,
232
+ .sk-estimator-doc-link:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
233
+ }div.sk-estimator.fitted:hover .sk-estimator-doc-link.fitted:hover,
234
+ .sk-estimator-doc-link.fitted:hover,
235
+ div.sk-label-container:hover .sk-estimator-doc-link.fitted:hover,
236
+ .sk-estimator-doc-link.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
237
+ }/* Span, style for the box shown on hovering the info icon */
238
+ .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);
239
+ }.sk-estimator-doc-link.fitted span {/* fitted */background: var(--sklearn-color-fitted-level-0);border: var(--sklearn-color-fitted-level-3);
240
+ }.sk-estimator-doc-link:hover span {display: block;
241
+ }/* "?"-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;
242
+ }#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);
243
+ }/* On hover */
244
+ #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;
245
+ }#sk-container-id-1 a.estimator_doc_link.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-3);
246
+ }
247
+ </style><div id="sk-container-id-1" class="sk-top-container" style="overflow: auto;"><div class="sk-text-repr-fallback"><pre>DecisionTreeClassifier()</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;DecisionTreeClassifier<a class="sk-estimator-doc-link fitted" rel="noreferrer" target="_blank" href="https://scikit-learn.org/1.4/modules/generated/sklearn.tree.DecisionTreeClassifier.html">?<span>Documentation for DecisionTreeClassifier</span></a><span class="sk-estimator-doc-link fitted">i<span>Fitted</span></span></label><div class="sk-toggleable__content fitted"><pre>DecisionTreeClassifier()</pre></div> </div></div></div></div>
248
+
249
+ ## Evaluation Results
250
+
251
+ | Metric | Value |
252
+ |----------|----------|
253
+ | accuracy | 0.947368 |
254
+ | f1 score | 0.947368 |
255
+
256
+ # How to Get Started with the Model
257
+
258
+ [More Information Needed]
259
+
260
+ # Model Card Authors
261
+
262
+ This model card is written by following authors:
263
+
264
+ [More Information Needed]
265
+
266
+ # Model Card Contact
267
+
268
+ You can contact the model card authors through following channels:
269
+ [More Information Needed]
270
+
271
+ # Citation
272
+
273
+ Below you can find information related to citation.
274
+
275
+ **BibTeX:**
276
+ ```
277
+ [More Information Needed]
278
+ ```
279
+
280
+ # citation_bibtex
281
+
282
+ bibtex
283
+ @inproceedings{...,year={2020}}
284
+
285
+ # get_started_code
286
+
287
+ import pickle
288
+ with open(dtc_pkl_filename, 'rb') as file:
289
+ clf = pickle.load(file)
290
+
291
+ # model_card_authors
292
+
293
+ skops_user
294
+
295
+ # limitations
296
+
297
+ This model is not ready to be used in production.
298
+
299
+ # model_description
300
+
301
+ This is a DecisionTreeClassifier model trained on breast cancer dataset.
302
+
303
+ # eval_method
304
+
305
+ The model is evaluated using test split, on accuracy and F1 score with macro average.
306
+
307
+ # confusion_matrix
308
+
309
+ ![confusion_matrix](confusion_matrix.png)