Instructions to use abhatt13/HeartDiseasePredictor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use abhatt13/HeartDiseasePredictor with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("abhatt13/HeartDiseasePredictor", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +24 -24
config.json
CHANGED
|
@@ -19,52 +19,52 @@
|
|
| 19 |
],
|
| 20 |
"example_input":{
|
| 21 |
"AgeCategory": [
|
| 22 |
-
0,
|
| 23 |
-
1
|
| 24 |
],
|
| 25 |
"Stroke": [
|
| 26 |
-
0,
|
| 27 |
-
1
|
| 28 |
],
|
| 29 |
"Diabetic_Yes": [
|
| 30 |
-
1,
|
| 31 |
-
0
|
| 32 |
],
|
| 33 |
"KidneyDisease": [
|
| 34 |
-
1,
|
| 35 |
-
0
|
| 36 |
],
|
| 37 |
"Smoking": [
|
| 38 |
-
1,
|
| 39 |
-
0
|
| 40 |
],
|
| 41 |
"SkinCancer": [
|
| 42 |
-
1,
|
| 43 |
-
0
|
| 44 |
],
|
| 45 |
"Is_Male": [
|
| 46 |
-
1,
|
| 47 |
-
0
|
| 48 |
],
|
| 49 |
"BMI": [
|
| 50 |
-
0,
|
| 51 |
-
1
|
| 52 |
],
|
| 53 |
"Asthma": [
|
| 54 |
-
1,
|
| 55 |
-
0
|
| 56 |
],
|
| 57 |
"Race_White": [
|
| 58 |
-
0,
|
| 59 |
-
1
|
| 60 |
],
|
| 61 |
"AlcoholDrinking": [
|
| 62 |
-
1,
|
| 63 |
-
0
|
| 64 |
],
|
| 65 |
"GenHealth": [
|
| 66 |
-
0,
|
| 67 |
-
1
|
| 68 |
]
|
| 69 |
},
|
| 70 |
"model": {
|
|
|
|
| 19 |
],
|
| 20 |
"example_input":{
|
| 21 |
"AgeCategory": [
|
| 22 |
+
"0",
|
| 23 |
+
"1"
|
| 24 |
],
|
| 25 |
"Stroke": [
|
| 26 |
+
"0",
|
| 27 |
+
"1"
|
| 28 |
],
|
| 29 |
"Diabetic_Yes": [
|
| 30 |
+
"1",
|
| 31 |
+
"0"
|
| 32 |
],
|
| 33 |
"KidneyDisease": [
|
| 34 |
+
"1",
|
| 35 |
+
"0"
|
| 36 |
],
|
| 37 |
"Smoking": [
|
| 38 |
+
"1",
|
| 39 |
+
"0"
|
| 40 |
],
|
| 41 |
"SkinCancer": [
|
| 42 |
+
"1",
|
| 43 |
+
"0"
|
| 44 |
],
|
| 45 |
"Is_Male": [
|
| 46 |
+
"1",
|
| 47 |
+
"0"
|
| 48 |
],
|
| 49 |
"BMI": [
|
| 50 |
+
"0",
|
| 51 |
+
"1"
|
| 52 |
],
|
| 53 |
"Asthma": [
|
| 54 |
+
"1",
|
| 55 |
+
"0"
|
| 56 |
],
|
| 57 |
"Race_White": [
|
| 58 |
+
"0",
|
| 59 |
+
"1"
|
| 60 |
],
|
| 61 |
"AlcoholDrinking": [
|
| 62 |
+
"1",
|
| 63 |
+
"0"
|
| 64 |
],
|
| 65 |
"GenHealth": [
|
| 66 |
+
"0",
|
| 67 |
+
"1"
|
| 68 |
]
|
| 69 |
},
|
| 70 |
"model": {
|