Downloads · 30 days
3
20% of all-time downloads
CSC310-fall25/regression_obesityWeight_model
regression_obesityWeight_model is a machine learning model from CSC310-fall25. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for scikit-learn. The card lists the license as mit.
This model predicts a person’s weight (kg) based on height (m) and age (years) using a Linear Regression model from scikit-learn.
Downloads · 30 days
3
20% of all-time downloads
All-time downloads
15
Public
Repo size
165 KB
Likes
0
Public
Click a slice to open those files.
.png328 KB · 98%
From the Hugging Face model README
This model predicts a person’s weight (kg) based on height (m) and age (years) using a Linear Regression model from scikit-learn.
| Detail | Value |
|---|---|
| Algorithm | LinearRegression() |
| Features | Height, Age |
| Target | Weight |
| Train/Test Split | 75% / 25% |
| Random State | 42 |
| Dataset | ObesityDataSet_raw_and_data_sinhtetic.csv |
| Metric | Score |
|---|---|
| MSE (Mean Squared Error) | 511.55 |
| R^2 Score | 0.2777 |
These results indicate that height and age alone do not fully explain weight — important factors like diet, genetics, and exercise are missing.
Below is a scatter plot showing predicted vs true weights:

The wide spread around the regression line shows prediction uncertainty for heavier individuals.
This model is intended for educational use only.