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1 |
+
---
|
2 |
+
license: mit
|
3 |
+
library_name: sklearn
|
4 |
+
tags:
|
5 |
+
- sklearn
|
6 |
+
- skops
|
7 |
+
- tabular-classification
|
8 |
+
model_format: pickle
|
9 |
+
model_file: example.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 |
+
| random_state | |
|
164 |
+
| splitter | best |
|
165 |
+
|
166 |
+
</details>
|
167 |
+
|
168 |
+
### Model Plot
|
169 |
+
|
170 |
+
<style>#sk-container-id-1 {color: black;background-color: white;}#sk-container-id-1 pre{padding: 0;}#sk-container-id-1 div.sk-toggleable {background-color: white;}#sk-container-id-1 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.3em;box-sizing: border-box;text-align: center;}#sk-container-id-1 label.sk-toggleable__label-arrow:before {content: "▸";float: left;margin-right: 0.25em;color: #696969;}#sk-container-id-1 label.sk-toggleable__label-arrow:hover:before {color: black;}#sk-container-id-1 div.sk-estimator:hover label.sk-toggleable__label-arrow:before {color: black;}#sk-container-id-1 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;background-color: #f0f8ff;}#sk-container-id-1 div.sk-toggleable__content pre {margin: 0.2em;color: black;border-radius: 0.25em;background-color: #f0f8ff;}#sk-container-id-1 input.sk-toggleable__control:checked~div.sk-toggleable__content {max-height: 200px;max-width: 100%;overflow: auto;}#sk-container-id-1 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: "▾";}#sk-container-id-1 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 div.sk-label input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#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;}#sk-container-id-1 div.sk-estimator {font-family: monospace;background-color: #f0f8ff;border: 1px dotted black;border-radius: 0.25em;box-sizing: border-box;margin-bottom: 0.5em;}#sk-container-id-1 div.sk-estimator:hover {background-color: #d4ebff;}#sk-container-id-1 div.sk-parallel-item::after {content: "";width: 100%;border-bottom: 1px solid gray;flex-grow: 1;}#sk-container-id-1 div.sk-label:hover label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 div.sk-serial::before {content: "";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: 0;}#sk-container-id-1 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: white;padding-right: 0.2em;padding-left: 0.2em;position: relative;}#sk-container-id-1 div.sk-item {position: relative;z-index: 1;}#sk-container-id-1 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: white;position: relative;}#sk-container-id-1 div.sk-item::before, #sk-container-id-1 div.sk-parallel-item::before {content: "";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: -1;}#sk-container-id-1 div.sk-parallel-item {display: flex;flex-direction: column;z-index: 1;position: relative;background-color: white;}#sk-container-id-1 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;}#sk-container-id-1 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;}#sk-container-id-1 div.sk-parallel-item:only-child::after {width: 0;}#sk-container-id-1 div.sk-dashed-wrapped {border: 1px dashed gray;margin: 0 0.4em 0.5em 0.4em;box-sizing: border-box;padding-bottom: 0.4em;background-color: white;}#sk-container-id-1 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;}#sk-container-id-1 div.sk-label-container {text-align: center;}#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 the default 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;}#sk-container-id-1 div.sk-text-repr-fallback {display: none;}</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 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 sk-toggleable__label-arrow">DecisionTreeClassifier</label><div class="sk-toggleable__content"><pre>DecisionTreeClassifier()</pre></div></div></div></div></div>
|
171 |
+
|
172 |
+
## Evaluation Results
|
173 |
+
|
174 |
+
| Metric | Value |
|
175 |
+
|----------|----------|
|
176 |
+
| accuracy | 0.923977 |
|
177 |
+
| f1 score | 0.923977 |
|
178 |
+
|
179 |
+
# How to Get Started with the Model
|
180 |
+
|
181 |
+
[More Information Needed]
|
182 |
+
|
183 |
+
# Model Card Authors
|
184 |
+
|
185 |
+
This model card is written by following authors:
|
186 |
+
|
187 |
+
[More Information Needed]
|
188 |
+
|
189 |
+
# Model Card Contact
|
190 |
+
|
191 |
+
You can contact the model card authors through following channels:
|
192 |
+
[More Information Needed]
|
193 |
+
|
194 |
+
# Citation
|
195 |
+
|
196 |
+
Below you can find information related to citation.
|
197 |
+
|
198 |
+
**BibTeX:**
|
199 |
+
```
|
200 |
+
[More Information Needed]
|
201 |
+
```
|
202 |
+
|
203 |
+
# citation_bibtex
|
204 |
+
|
205 |
+
bibtex
|
206 |
+
@inproceedings{...,year={2020}}
|
207 |
+
|
208 |
+
# get_started_code
|
209 |
+
|
210 |
+
import pickle
|
211 |
+
with open(dtc_pkl_filename, 'rb') as file:
|
212 |
+
clf = pickle.load(file)
|
213 |
+
|
214 |
+
# model_card_authors
|
215 |
+
|
216 |
+
skops_user
|
217 |
+
|
218 |
+
# limitations
|
219 |
+
|
220 |
+
This model is not ready to be used in production.
|
221 |
+
|
222 |
+
# model_description
|
223 |
+
|
224 |
+
This is a DecisionTreeClassifier model trained on breast cancer dataset.
|
225 |
+
|
226 |
+
# eval_method
|
227 |
+
|
228 |
+
The model is evaluated using test split, on accuracy and F1 score with macro average.
|
229 |
+
|
230 |
+
# confusion_matrix
|
231 |
+
|
232 |
+
![confusion_matrix](confusion_matrix.png)
|
config.json
ADDED
@@ -0,0 +1,197 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"sklearn": {
|
3 |
+
"columns": [
|
4 |
+
"mean radius",
|
5 |
+
"mean texture",
|
6 |
+
"mean perimeter",
|
7 |
+
"mean area",
|
8 |
+
"mean smoothness",
|
9 |
+
"mean compactness",
|
10 |
+
"mean concavity",
|
11 |
+
"mean concave points",
|
12 |
+
"mean symmetry",
|
13 |
+
"mean fractal dimension",
|
14 |
+
"radius error",
|
15 |
+
"texture error",
|
16 |
+
"perimeter error",
|
17 |
+
"area error",
|
18 |
+
"smoothness error",
|
19 |
+
"compactness error",
|
20 |
+
"concavity error",
|
21 |
+
"concave points error",
|
22 |
+
"symmetry error",
|
23 |
+
"fractal dimension error",
|
24 |
+
"worst radius",
|
25 |
+
"worst texture",
|
26 |
+
"worst perimeter",
|
27 |
+
"worst area",
|
28 |
+
"worst smoothness",
|
29 |
+
"worst compactness",
|
30 |
+
"worst concavity",
|
31 |
+
"worst concave points",
|
32 |
+
"worst symmetry",
|
33 |
+
"worst fractal dimension"
|
34 |
+
],
|
35 |
+
"environment": [
|
36 |
+
"scikit-learn=1.2.2"
|
37 |
+
],
|
38 |
+
"example_input": {
|
39 |
+
"area error": [
|
40 |
+
30.29,
|
41 |
+
96.05,
|
42 |
+
48.31
|
43 |
+
],
|
44 |
+
"compactness error": [
|
45 |
+
0.01911,
|
46 |
+
0.01652,
|
47 |
+
0.01484
|
48 |
+
],
|
49 |
+
"concave points error": [
|
50 |
+
0.01037,
|
51 |
+
0.0137,
|
52 |
+
0.01093
|
53 |
+
],
|
54 |
+
"concavity error": [
|
55 |
+
0.02701,
|
56 |
+
0.02269,
|
57 |
+
0.02813
|
58 |
+
],
|
59 |
+
"fractal dimension error": [
|
60 |
+
0.003586,
|
61 |
+
0.001698,
|
62 |
+
0.002461
|
63 |
+
],
|
64 |
+
"mean area": [
|
65 |
+
481.9,
|
66 |
+
1130.0,
|
67 |
+
748.9
|
68 |
+
],
|
69 |
+
"mean compactness": [
|
70 |
+
0.1058,
|
71 |
+
0.1029,
|
72 |
+
0.1223
|
73 |
+
],
|
74 |
+
"mean concave points": [
|
75 |
+
0.03821,
|
76 |
+
0.07951,
|
77 |
+
0.08087
|
78 |
+
],
|
79 |
+
"mean concavity": [
|
80 |
+
0.08005,
|
81 |
+
0.108,
|
82 |
+
0.1466
|
83 |
+
],
|
84 |
+
"mean fractal dimension": [
|
85 |
+
0.06373,
|
86 |
+
0.05461,
|
87 |
+
0.05796
|
88 |
+
],
|
89 |
+
"mean perimeter": [
|
90 |
+
81.09,
|
91 |
+
123.6,
|
92 |
+
101.7
|
93 |
+
],
|
94 |
+
"mean radius": [
|
95 |
+
12.47,
|
96 |
+
18.94,
|
97 |
+
15.46
|
98 |
+
],
|
99 |
+
"mean smoothness": [
|
100 |
+
0.09965,
|
101 |
+
0.09009,
|
102 |
+
0.1092
|
103 |
+
],
|
104 |
+
"mean symmetry": [
|
105 |
+
0.1925,
|
106 |
+
0.1582,
|
107 |
+
0.1931
|
108 |
+
],
|
109 |
+
"mean texture": [
|
110 |
+
18.6,
|
111 |
+
21.31,
|
112 |
+
19.48
|
113 |
+
],
|
114 |
+
"perimeter error": [
|
115 |
+
2.497,
|
116 |
+
5.486,
|
117 |
+
3.094
|
118 |
+
],
|
119 |
+
"radius error": [
|
120 |
+
0.3961,
|
121 |
+
0.7888,
|
122 |
+
0.4743
|
123 |
+
],
|
124 |
+
"smoothness error": [
|
125 |
+
0.006953,
|
126 |
+
0.004444,
|
127 |
+
0.00624
|
128 |
+
],
|
129 |
+
"symmetry error": [
|
130 |
+
0.01782,
|
131 |
+
0.01386,
|
132 |
+
0.01397
|
133 |
+
],
|
134 |
+
"texture error": [
|
135 |
+
1.044,
|
136 |
+
0.7975,
|
137 |
+
0.7859
|
138 |
+
],
|
139 |
+
"worst area": [
|
140 |
+
677.9,
|
141 |
+
1866.0,
|
142 |
+
1156.0
|
143 |
+
],
|
144 |
+
"worst compactness": [
|
145 |
+
0.2378,
|
146 |
+
0.2336,
|
147 |
+
0.2394
|
148 |
+
],
|
149 |
+
"worst concave points": [
|
150 |
+
0.1015,
|
151 |
+
0.1789,
|
152 |
+
0.1514
|
153 |
+
],
|
154 |
+
"worst concavity": [
|
155 |
+
0.2671,
|
156 |
+
0.2687,
|
157 |
+
0.3791
|
158 |
+
],
|
159 |
+
"worst fractal dimension": [
|
160 |
+
0.0875,
|
161 |
+
0.06589,
|
162 |
+
0.08019
|
163 |
+
],
|
164 |
+
"worst perimeter": [
|
165 |
+
96.05,
|
166 |
+
165.9,
|
167 |
+
124.9
|
168 |
+
],
|
169 |
+
"worst radius": [
|
170 |
+
14.97,
|
171 |
+
24.86,
|
172 |
+
19.26
|
173 |
+
],
|
174 |
+
"worst smoothness": [
|
175 |
+
0.1426,
|
176 |
+
0.1193,
|
177 |
+
0.1546
|
178 |
+
],
|
179 |
+
"worst symmetry": [
|
180 |
+
0.3014,
|
181 |
+
0.2551,
|
182 |
+
0.2837
|
183 |
+
],
|
184 |
+
"worst texture": [
|
185 |
+
24.64,
|
186 |
+
26.58,
|
187 |
+
26.0
|
188 |
+
]
|
189 |
+
},
|
190 |
+
"model": {
|
191 |
+
"file": "example.pkl"
|
192 |
+
},
|
193 |
+
"model_format": "pickle",
|
194 |
+
"task": "tabular-classification",
|
195 |
+
"use_intelex": false
|
196 |
+
}
|
197 |
+
}
|
confusion_matrix.png
ADDED
example.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:91ec41e1686bbefa37a9524b06c054e7b70fed9baf56ccfc0d5730311c3fdf19
|
3 |
+
size 3924
|