gianlab commited on
Commit
19f50da
1 Parent(s): 64321f4

pushing files to the repo from the example!

Browse files
Files changed (3) hide show
  1. README.md +200 -0
  2. config.json +119 -0
  3. skops-dis9phuf.pkl +3 -0
README.md ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: sklearn
4
+ tags:
5
+ - sklearn
6
+ - skops
7
+ - tabular-classification
8
+ model_format: pickle
9
+ model_file: skops-dis9phuf.pkl
10
+ widget:
11
+ - structuredData:
12
+ x0:
13
+ - 3
14
+ - 5
15
+ - 1
16
+ x1:
17
+ - 5
18
+ - 5
19
+ - 3
20
+ x10:
21
+ - 0
22
+ - 0
23
+ - 0
24
+ x11:
25
+ - 0
26
+ - 0
27
+ - 0
28
+ x12:
29
+ - 0
30
+ - 0
31
+ - 0
32
+ x13:
33
+ - 0
34
+ - 0
35
+ - 0
36
+ x14:
37
+ - 0
38
+ - 0
39
+ - 0
40
+ x15:
41
+ - 0
42
+ - 0
43
+ - 0
44
+ x16:
45
+ - 0
46
+ - 0
47
+ - 0
48
+ x2:
49
+ - 3
50
+ - 4
51
+ - 0
52
+ x3:
53
+ - 5
54
+ - 4
55
+ - 0
56
+ x4:
57
+ - 4
58
+ - 4
59
+ - 0
60
+ x5:
61
+ - 4
62
+ - 0
63
+ - 0
64
+ x6:
65
+ - 3
66
+ - 0
67
+ - 0
68
+ x7:
69
+ - 2
70
+ - 0
71
+ - 0
72
+ x8:
73
+ - 3
74
+ - 0
75
+ - 0
76
+ x9:
77
+ - 0
78
+ - 0
79
+ - 0
80
+ ---
81
+
82
+ # Model description
83
+
84
+ This model was created following the instructions in the following Kaggle notebook:https://www.kaggle.com/code/thedankdel/disease-symptom-prediction-ml-99The possible classified diseases are:The possible symptoms are:
85
+
86
+ ## Intended uses & limitations
87
+
88
+ This model follows the limitations of the Apache 2.0 license.
89
+
90
+ ## Training Procedure
91
+
92
+ [More Information Needed]
93
+
94
+ ### Hyperparameters
95
+
96
+ <details>
97
+ <summary> Click to expand </summary>
98
+
99
+ | Hyperparameter | Value |
100
+ |--------------------------|---------|
101
+ | bootstrap | True |
102
+ | ccp_alpha | 0.0 |
103
+ | class_weight | |
104
+ | criterion | gini |
105
+ | max_depth | 13 |
106
+ | max_features | sqrt |
107
+ | max_leaf_nodes | |
108
+ | max_samples | |
109
+ | min_impurity_decrease | 0.0 |
110
+ | min_samples_leaf | 1 |
111
+ | min_samples_split | 2 |
112
+ | min_weight_fraction_leaf | 0.0 |
113
+ | n_estimators | 500 |
114
+ | n_jobs | |
115
+ | oob_score | False |
116
+ | random_state | 42 |
117
+ | verbose | 0 |
118
+ | warm_start | False |
119
+
120
+ </details>
121
+
122
+ ### Model Plot
123
+
124
+ <style>#sk-container-id-1 {color: black;}#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>RandomForestClassifier(max_depth=13, n_estimators=500, random_state=42)</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">RandomForestClassifier</label><div class="sk-toggleable__content"><pre>RandomForestClassifier(max_depth=13, n_estimators=500, random_state=42)</pre></div></div></div></div></div>
125
+
126
+ ## Evaluation Results
127
+
128
+ | Metric | Value |
129
+ |----------|----------|
130
+ | accuracy | 0.995935 |
131
+ | f1 score | 0.995935 |
132
+
133
+ ### Model description/Evaluation Results/Classification report
134
+
135
+ | index | precision | recall | f1-score | support |
136
+ |-----------------------------------------|-------------|----------|------------|-----------|
137
+ | (vertigo) Paroymsal Positional Vertigo | 1 | 1 | 1 | 18 |
138
+ | AIDS | 1 | 1 | 1 | 20 |
139
+ | Acne | 1 | 1 | 1 | 32 |
140
+ | Alcoholic hepatitis | 1 | 1 | 1 | 29 |
141
+ | Allergy | 1 | 0.947368 | 0.972973 | 19 |
142
+ | Arthritis | 1 | 1 | 1 | 31 |
143
+ | Bronchial Asthma | 1 | 1 | 1 | 28 |
144
+ | Cervical spondylosis | 0.9375 | 1 | 0.967742 | 30 |
145
+ | Chicken pox | 1 | 1 | 1 | 27 |
146
+ | Chronic cholestasis | 1 | 1 | 1 | 19 |
147
+ | Common Cold | 1 | 1 | 1 | 25 |
148
+ | Dengue | 1 | 1 | 1 | 22 |
149
+ | Diabetes | 1 | 1 | 1 | 23 |
150
+ | Dimorphic hemmorhoids(piles) | 1 | 1 | 1 | 30 |
151
+ | Drug Reaction | 1 | 1 | 1 | 21 |
152
+ | Fungal infection | 1 | 1 | 1 | 25 |
153
+ | GERD | 1 | 1 | 1 | 24 |
154
+ | Gastroenteritis | 1 | 0.95 | 0.974359 | 20 |
155
+ | Heart attack | 1 | 1 | 1 | 18 |
156
+ | Hepatitis B | 1 | 1 | 1 | 28 |
157
+ | Hepatitis C | 1 | 1 | 1 | 19 |
158
+ | Hepatitis D | 1 | 1 | 1 | 22 |
159
+ | Hepatitis E | 1 | 1 | 1 | 30 |
160
+ | Hypertension | 1 | 0.931034 | 0.964286 | 29 |
161
+ | Hyperthyroidism | 1 | 1 | 1 | 24 |
162
+ | Hypoglycemia | 1 | 1 | 1 | 27 |
163
+ | Hypothyroidism | 1 | 1 | 1 | 28 |
164
+ | Impetigo | 1 | 1 | 1 | 24 |
165
+ | Jaundice | 1 | 1 | 1 | 25 |
166
+ | Malaria | 1 | 1 | 1 | 26 |
167
+ | Migraine | 1 | 1 | 1 | 18 |
168
+ | Osteoarthristis | 1 | 1 | 1 | 20 |
169
+ | Paralysis (brain hemorrhage) | 0.904762 | 1 | 0.95 | 19 |
170
+ | Peptic ulcer diseae | 1 | 1 | 1 | 27 |
171
+ | Pneumonia | 1 | 1 | 1 | 21 |
172
+ | Psoriasis | 1 | 1 | 1 | 22 |
173
+ | Tuberculosis | 1 | 1 | 1 | 23 |
174
+ | Typhoid | 1 | 1 | 1 | 20 |
175
+ | Urinary tract infection | 1 | 1 | 1 | 24 |
176
+ | Varicose veins | 1 | 1 | 1 | 26 |
177
+ | hepatitis A | 1 | 1 | 1 | 21 |
178
+ | macro avg | 0.996153 | 0.995815 | 0.995838 | 984 |
179
+ | weighted avg | 0.996256 | 0.995935 | 0.995955 | 984 |
180
+
181
+ # How to Get Started with the Model
182
+
183
+ [More Information Needed]
184
+
185
+ # Model Card Authors
186
+
187
+ gianlab
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
+ **BibTeX**
197
+
198
+ ```
199
+ @inproceedings{...,year={2020}}
200
+ ```
config.json ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sklearn": {
3
+ "columns": [
4
+ "x0",
5
+ "x1",
6
+ "x2",
7
+ "x3",
8
+ "x4",
9
+ "x5",
10
+ "x6",
11
+ "x7",
12
+ "x8",
13
+ "x9",
14
+ "x10",
15
+ "x11",
16
+ "x12",
17
+ "x13",
18
+ "x14",
19
+ "x15",
20
+ "x16"
21
+ ],
22
+ "environment": [
23
+ "scikit-learn=1.3.2"
24
+ ],
25
+ "example_input": {
26
+ "x0": [
27
+ 3,
28
+ 5,
29
+ 1
30
+ ],
31
+ "x1": [
32
+ 5,
33
+ 5,
34
+ 3
35
+ ],
36
+ "x10": [
37
+ 0,
38
+ 0,
39
+ 0
40
+ ],
41
+ "x11": [
42
+ 0,
43
+ 0,
44
+ 0
45
+ ],
46
+ "x12": [
47
+ 0,
48
+ 0,
49
+ 0
50
+ ],
51
+ "x13": [
52
+ 0,
53
+ 0,
54
+ 0
55
+ ],
56
+ "x14": [
57
+ 0,
58
+ 0,
59
+ 0
60
+ ],
61
+ "x15": [
62
+ 0,
63
+ 0,
64
+ 0
65
+ ],
66
+ "x16": [
67
+ 0,
68
+ 0,
69
+ 0
70
+ ],
71
+ "x2": [
72
+ 3,
73
+ 4,
74
+ 0
75
+ ],
76
+ "x3": [
77
+ 5,
78
+ 4,
79
+ 0
80
+ ],
81
+ "x4": [
82
+ 4,
83
+ 4,
84
+ 0
85
+ ],
86
+ "x5": [
87
+ 4,
88
+ 0,
89
+ 0
90
+ ],
91
+ "x6": [
92
+ 3,
93
+ 0,
94
+ 0
95
+ ],
96
+ "x7": [
97
+ 2,
98
+ 0,
99
+ 0
100
+ ],
101
+ "x8": [
102
+ 3,
103
+ 0,
104
+ 0
105
+ ],
106
+ "x9": [
107
+ 0,
108
+ 0,
109
+ 0
110
+ ]
111
+ },
112
+ "model": {
113
+ "file": "skops-dis9phuf.pkl"
114
+ },
115
+ "model_format": "pickle",
116
+ "task": "tabular-classification",
117
+ "use_intelex": false
118
+ }
119
+ }
skops-dis9phuf.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa0a8e3263ba0801f00787b9187efa7f95ee733a6efb411a19b649ed0442e421
3
+ size 42353882