robingenz commited on
Commit
145b1c2
1 Parent(s): ba56679

pushing files to the repo from the example!

Browse files
Files changed (3) hide show
  1. README.md +127 -0
  2. config.json +41 -0
  3. model.pkl +3 -0
README.md ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: sklearn
4
+ tags:
5
+ - sklearn
6
+ - skops
7
+ - tabular-classification
8
+ model_format: pickle
9
+ model_file: model.pkl
10
+ widget:
11
+ structuredData:
12
+ petal length (cm):
13
+ - 5.7
14
+ - 5.6
15
+ - 5.2
16
+ petal width (cm):
17
+ - 2.1
18
+ - 2.4
19
+ - 2.0
20
+ sepal length (cm):
21
+ - 6.7
22
+ - 6.3
23
+ - 6.5
24
+ sepal width (cm):
25
+ - 3.3
26
+ - 3.4
27
+ - 3.0
28
+ ---
29
+
30
+ # Model description
31
+
32
+ [More Information Needed]
33
+
34
+ ## Intended uses & limitations
35
+
36
+ [More Information Needed]
37
+
38
+ ## Training Procedure
39
+
40
+ [More Information Needed]
41
+
42
+ ### Hyperparameters
43
+
44
+ <details>
45
+ <summary> Click to expand </summary>
46
+
47
+ | Hyperparameter | Value |
48
+ |-------------------|---------|
49
+ | C | 1.0 |
50
+ | class_weight | |
51
+ | dual | False |
52
+ | fit_intercept | True |
53
+ | intercept_scaling | 1 |
54
+ | l1_ratio | |
55
+ | max_iter | 100 |
56
+ | multi_class | auto |
57
+ | n_jobs | |
58
+ | penalty | l2 |
59
+ | random_state | 0 |
60
+ | solver | lbfgs |
61
+ | tol | 0.0001 |
62
+ | verbose | 0 |
63
+ | warm_start | False |
64
+
65
+ </details>
66
+
67
+ ### Model Plot
68
+
69
+ <style>#sk-container-id-4 {color: black;background-color: white;}#sk-container-id-4 pre{padding: 0;}#sk-container-id-4 div.sk-toggleable {background-color: white;}#sk-container-id-4 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-4 label.sk-toggleable__label-arrow:before {content: "▸";float: left;margin-right: 0.25em;color: #696969;}#sk-container-id-4 label.sk-toggleable__label-arrow:hover:before {color: black;}#sk-container-id-4 div.sk-estimator:hover label.sk-toggleable__label-arrow:before {color: black;}#sk-container-id-4 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;background-color: #f0f8ff;}#sk-container-id-4 div.sk-toggleable__content pre {margin: 0.2em;color: black;border-radius: 0.25em;background-color: #f0f8ff;}#sk-container-id-4 input.sk-toggleable__control:checked~div.sk-toggleable__content {max-height: 200px;max-width: 100%;overflow: auto;}#sk-container-id-4 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: "▾";}#sk-container-id-4 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-4 div.sk-label input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-4 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-4 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-4 div.sk-estimator:hover {background-color: #d4ebff;}#sk-container-id-4 div.sk-parallel-item::after {content: "";width: 100%;border-bottom: 1px solid gray;flex-grow: 1;}#sk-container-id-4 div.sk-label:hover label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-4 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-4 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-4 div.sk-item {position: relative;z-index: 1;}#sk-container-id-4 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: white;position: relative;}#sk-container-id-4 div.sk-item::before, #sk-container-id-4 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-4 div.sk-parallel-item {display: flex;flex-direction: column;z-index: 1;position: relative;background-color: white;}#sk-container-id-4 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;}#sk-container-id-4 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;}#sk-container-id-4 div.sk-parallel-item:only-child::after {width: 0;}#sk-container-id-4 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-4 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;}#sk-container-id-4 div.sk-label-container {text-align: center;}#sk-container-id-4 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-4 div.sk-text-repr-fallback {display: none;}</style><div id="sk-container-id-4" class="sk-top-container" style="overflow: auto;"><div class="sk-text-repr-fallback"><pre>LogisticRegression(random_state=0)</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-4" type="checkbox" checked><label for="sk-estimator-id-4" class="sk-toggleable__label sk-toggleable__label-arrow">LogisticRegression</label><div class="sk-toggleable__content"><pre>LogisticRegression(random_state=0)</pre></div></div></div></div></div>
70
+
71
+ ## Evaluation Results
72
+
73
+ | Metric | Value |
74
+ |----------|----------|
75
+ | accuracy | 0.933333 |
76
+ | f1 score | 0.933333 |
77
+
78
+ # How to Get Started with the Model
79
+
80
+ [More Information Needed]
81
+
82
+ # Model Card Authors
83
+
84
+ This model card is written by following authors:
85
+
86
+ [More Information Needed]
87
+
88
+ # Model Card Contact
89
+
90
+ You can contact the model card authors through following channels:
91
+ [More Information Needed]
92
+
93
+ # Citation
94
+
95
+ Below you can find information related to citation.
96
+
97
+ **BibTeX:**
98
+ ```
99
+ [More Information Needed]
100
+ ```
101
+
102
+ # citation_bibtex
103
+
104
+ bibtex
105
+ @inproceedings{...,year={2020}}
106
+
107
+ # get_started_code
108
+
109
+ import pickle
110
+ with open(dtc_pkl_filename, 'rb') as file:
111
+ clf = pickle.load(file)
112
+
113
+ # model_card_authors
114
+
115
+ skops_user
116
+
117
+ # limitations
118
+
119
+ This model is not ready to be used in production.
120
+
121
+ # model_description
122
+
123
+ This is a DecisionTreeClassifier model trained on breast cancer dataset.
124
+
125
+ # eval_method
126
+
127
+ The model is evaluated using test split, on accuracy and F1 score with macro average.
config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sklearn": {
3
+ "columns": [
4
+ "sepal length (cm)",
5
+ "sepal width (cm)",
6
+ "petal length (cm)",
7
+ "petal width (cm)"
8
+ ],
9
+ "environment": [
10
+ "scikit-learn=1.1.1"
11
+ ],
12
+ "example_input": {
13
+ "petal length (cm)": [
14
+ 5.7,
15
+ 5.6,
16
+ 5.2
17
+ ],
18
+ "petal width (cm)": [
19
+ 2.1,
20
+ 2.4,
21
+ 2.0
22
+ ],
23
+ "sepal length (cm)": [
24
+ 6.7,
25
+ 6.3,
26
+ 6.5
27
+ ],
28
+ "sepal width (cm)": [
29
+ 3.3,
30
+ 3.4,
31
+ 3.0
32
+ ]
33
+ },
34
+ "model": {
35
+ "file": "model.pkl"
36
+ },
37
+ "model_format": "pickle",
38
+ "task": "tabular-classification",
39
+ "use_intelex": false
40
+ }
41
+ }
model.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:137aed0449bf9e92a2377635d279166d96276002057d55f659e162dd53641fb4
3
+ size 994