Upload folder using huggingface_hub
Browse files- .gitattributes +2 -0
- .ipynb_checkpoints/README-checkpoint.md +6 -0
- .ipynb_checkpoints/config-checkpoint.json +29 -0
- .ipynb_checkpoints/plot-checkpoint.png +3 -0
- README.md +125 -0
- config.json +29 -0
- plot.png +3 -0
- regr.pkl +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
.ipynb_checkpoints/plot-checkpoint.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
plot.png filter=lfs diff=lfs merge=lfs -text
|
.ipynb_checkpoints/README-checkpoint.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [],
|
| 3 |
+
"metadata": {},
|
| 4 |
+
"nbformat": 4,
|
| 5 |
+
"nbformat_minor": 5
|
| 6 |
+
}
|
.ipynb_checkpoints/config-checkpoint.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"sklearn": {
|
| 3 |
+
"columns": [
|
| 4 |
+
"Height",
|
| 5 |
+
"Age"
|
| 6 |
+
],
|
| 7 |
+
"environment": [
|
| 8 |
+
"scikit-learn==1.3.0"
|
| 9 |
+
],
|
| 10 |
+
"example_input": {
|
| 11 |
+
"Height": [
|
| 12 |
+
1.75,
|
| 13 |
+
1.65,
|
| 14 |
+
1.82
|
| 15 |
+
],
|
| 16 |
+
"Age": [
|
| 17 |
+
22,
|
| 18 |
+
30,
|
| 19 |
+
45
|
| 20 |
+
]
|
| 21 |
+
},
|
| 22 |
+
"model": {
|
| 23 |
+
"file": "regr.pkl"
|
| 24 |
+
}
|
| 25 |
+
},
|
| 26 |
+
"task": "tabular-regression",
|
| 27 |
+
"dataset": "ObesityDataSet_raw_and_data_sinthetic.csv",
|
| 28 |
+
"author": "Andres Henao"
|
| 29 |
+
}
|
.ipynb_checkpoints/plot-checkpoint.png
ADDED
|
Git LFS Details
|
README.md
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "markdown",
|
| 5 |
+
"id": "f12d78c8-bf84-4071-b14f-9f4a3f779c18",
|
| 6 |
+
"metadata": {},
|
| 7 |
+
"source": [
|
| 8 |
+
"---\n",
|
| 9 |
+
"license: mit\n",
|
| 10 |
+
"library_name: scikit-learn\n",
|
| 11 |
+
"tags:\n",
|
| 12 |
+
" - regression\n",
|
| 13 |
+
" - linear-regression\n",
|
| 14 |
+
"datasets:\n",
|
| 15 |
+
" - ObesityDataSet_raw_and_data_sinhtetic.csv\n",
|
| 16 |
+
"model-index:\n",
|
| 17 |
+
" - name: Obesity Weight Prediction Model\n",
|
| 18 |
+
" results:\n",
|
| 19 |
+
" - task:\n",
|
| 20 |
+
" type: regression\n",
|
| 21 |
+
" name: Weight prediction (kg)\n",
|
| 22 |
+
" dataset:\n",
|
| 23 |
+
" name: ObesityDataSet_raw_and_data_sinhtetic.csv\n",
|
| 24 |
+
" metrics:\n",
|
| 25 |
+
" - type: mean_squared_error\n",
|
| 26 |
+
" value: 511.55\n",
|
| 27 |
+
" - type: r2\n",
|
| 28 |
+
" value: 0.2777\n",
|
| 29 |
+
"---\n",
|
| 30 |
+
"\n",
|
| 31 |
+
"# Obesity Weight Prediction Model — Linear Regression\n",
|
| 32 |
+
"\n",
|
| 33 |
+
"## Overview\n",
|
| 34 |
+
"This model predicts a person’s **weight (kg)** based on **height (m)** and **age (years)** using a Linear Regression model from scikit-learn. \n",
|
| 35 |
+
"\n",
|
| 36 |
+
"---\n",
|
| 37 |
+
"\n",
|
| 38 |
+
"## Training\n",
|
| 39 |
+
"\n",
|
| 40 |
+
"| Detail | Value |\n",
|
| 41 |
+
"|--------|-------|\n",
|
| 42 |
+
"| Algorithm | `LinearRegression()` |\n",
|
| 43 |
+
"| Features | Height, Age |\n",
|
| 44 |
+
"| Target | Weight |\n",
|
| 45 |
+
"| Train/Test Split | 75% / 25% |\n",
|
| 46 |
+
"| Random State | 42 |\n",
|
| 47 |
+
"| Dataset | ObesityDataSet_raw_and_data_sinhtetic.csv |\n",
|
| 48 |
+
"\n",
|
| 49 |
+
"---\n",
|
| 50 |
+
"\n",
|
| 51 |
+
"## Performance\n",
|
| 52 |
+
"\n",
|
| 53 |
+
"| Metric | Score |\n",
|
| 54 |
+
"|--------|-------|\n",
|
| 55 |
+
"| MSE (Mean Squared Error) | **511.55** |\n",
|
| 56 |
+
"| R^2 Score | **0.2777** |\n",
|
| 57 |
+
"\n",
|
| 58 |
+
"These results indicate that height and age alone **do not fully explain** weight — important factors like diet, genetics, and exercise are missing.\n",
|
| 59 |
+
"\n",
|
| 60 |
+
"---\n",
|
| 61 |
+
"\n",
|
| 62 |
+
"## Visualization\n",
|
| 63 |
+
"\n",
|
| 64 |
+
"Below is a scatter plot showing predicted vs true weights:\n",
|
| 65 |
+
"\n",
|
| 66 |
+
"\n",
|
| 67 |
+
"\n",
|
| 68 |
+
"The wide spread around the regression line shows prediction uncertainty for heavier individuals.\n",
|
| 69 |
+
"\n",
|
| 70 |
+
"---\n",
|
| 71 |
+
"\n",
|
| 72 |
+
"## Limitations\n",
|
| 73 |
+
"- Only two features used → reduced explanatory power \n",
|
| 74 |
+
"- Synthetic dataset — not reflective of real population variation \n",
|
| 75 |
+
"- Performance not suitable for real-world medical decisions \n",
|
| 76 |
+
"\n",
|
| 77 |
+
"This model is intended for **educational use only**.\n",
|
| 78 |
+
"\n",
|
| 79 |
+
"---\n",
|
| 80 |
+
"## Strengths\n",
|
| 81 |
+
"- Easy to interpret\n",
|
| 82 |
+
"- Fast and simple\n",
|
| 83 |
+
"- Good educational model\n",
|
| 84 |
+
"\n",
|
| 85 |
+
"## Weaknesses\n",
|
| 86 |
+
"- Low accuracy\n",
|
| 87 |
+
"- Missing key health variables\n",
|
| 88 |
+
"- Not production-ready\n",
|
| 89 |
+
"\n",
|
| 90 |
+
"## Citation \n",
|
| 91 |
+
"- \"Estimation of Obesity Levels Based On Eating Habits and Physical Condition .\" UCI Machine Learning Repository, 2019, https://doi.org/10.24432/C5H31Z.\n",
|
| 92 |
+
"\n"
|
| 93 |
+
]
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"cell_type": "code",
|
| 97 |
+
"execution_count": null,
|
| 98 |
+
"id": "51036e3d-c32b-4102-b965-9759eb873131",
|
| 99 |
+
"metadata": {},
|
| 100 |
+
"outputs": [],
|
| 101 |
+
"source": []
|
| 102 |
+
}
|
| 103 |
+
],
|
| 104 |
+
"metadata": {
|
| 105 |
+
"kernelspec": {
|
| 106 |
+
"display_name": "Python 3 (ipykernel)",
|
| 107 |
+
"language": "python",
|
| 108 |
+
"name": "python3"
|
| 109 |
+
},
|
| 110 |
+
"language_info": {
|
| 111 |
+
"codemirror_mode": {
|
| 112 |
+
"name": "ipython",
|
| 113 |
+
"version": 3
|
| 114 |
+
},
|
| 115 |
+
"file_extension": ".py",
|
| 116 |
+
"mimetype": "text/x-python",
|
| 117 |
+
"name": "python",
|
| 118 |
+
"nbconvert_exporter": "python",
|
| 119 |
+
"pygments_lexer": "ipython3",
|
| 120 |
+
"version": "3.13.2"
|
| 121 |
+
}
|
| 122 |
+
},
|
| 123 |
+
"nbformat": 4,
|
| 124 |
+
"nbformat_minor": 5
|
| 125 |
+
}
|
config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"sklearn": {
|
| 3 |
+
"columns": [
|
| 4 |
+
"Height",
|
| 5 |
+
"Age"
|
| 6 |
+
],
|
| 7 |
+
"environment": [
|
| 8 |
+
"scikit-learn==1.3.0"
|
| 9 |
+
],
|
| 10 |
+
"example_input": {
|
| 11 |
+
"Height": [
|
| 12 |
+
1.75,
|
| 13 |
+
1.65,
|
| 14 |
+
1.82
|
| 15 |
+
],
|
| 16 |
+
"Age": [
|
| 17 |
+
22,
|
| 18 |
+
30,
|
| 19 |
+
45
|
| 20 |
+
]
|
| 21 |
+
},
|
| 22 |
+
"model": {
|
| 23 |
+
"file": "regr.pkl"
|
| 24 |
+
}
|
| 25 |
+
},
|
| 26 |
+
"task": "tabular-regression",
|
| 27 |
+
"dataset": "ObesityDataSet_raw_and_data_sinthetic.csv",
|
| 28 |
+
"author": "Andres Henao"
|
| 29 |
+
}
|
plot.png
ADDED
|
Git LFS Details
|
regr.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e25851a2a4e0845328f879e1072fe6df079be8a286b13c4f8c36bc73c7cf515
|
| 3 |
+
size 857
|