Downloads · 30 days
0
andreshenao/obesity-weight-regression
obesity-weight-regression is a machine learning model from andreshenao. 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 sklearn. The card lists the license as mit.
This model predicts a person’s weight (kg) from height (m) and age (years) using a Linear Regression model from scikit-learn. It is for educational demonstration in a URI data science course.
Downloads · 30 days
0
Access
Public
Updated Nov 5, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.skops2.8 KB · 43%
From the Hugging Face model README
This model predicts a person’s weight (kg) from height (m) and age (years) using a Linear Regression model from scikit-learn. It is for educational demonstration in a URI data science course.
| Feature | Type | Description |
|---|---|---|
| Height | Continuous | Height in meters |
| Age | Continuous | Age in years |
| Weight (target) | Continuous | Weight in kilograms |
| Metric | Value |
|---|---|
| Mean Squared Error (MSE) | 511.55 |
| R² Score | 0.2777 |
The model explains about 28% of weight variation — it recognizes the trend that taller and older people weigh more, but the predictions are not highly accurate.
LinearRegression()import skops.io as sio
model = sio.load("regression_model.skops", trusted=True)
prediction = model.predict([[1.75, 21]])
print(prediction)