Downloads · 30 days
0
iron04/simple-house-price-linear-regression
simple-house-price-linear-regression is a machine learning model from iron04. 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.
A simple Linear Regression model built with scikit-learn that predicts house price based on house size.
Downloads · 30 days
0
Access
Public
Updated Sep 14, 2026
Repo size
639 B
Likes
2
Public
Click a slice to open those files.
.md1.8 KB · 46%
From the Hugging Face model README
A simple Linear Regression model built with scikit-learn that predicts house price based on house size.
sklearn.linear_model.LinearRegressionThis model uses a small demonstration dataset and is intended for learning purposes only.
pip install scikit-learn joblib huggingface_hub
from huggingface_hub import hf_hub_download
import joblib
model_path = hf_hub_download(
repo_id="iron04/simple-house-price-linear-regression",
filename="model.joblib",
)
model = joblib.load(model_path)
prediction = model.predict([[1500]])
print(f"Predicted price: {prediction[0]:.2f} lakh")
model.joblib manuallyDownload model.joblib from this repository and place it in your project.
import joblib
model = joblib.load("model.joblib")
prediction = model.predict([[1500]])
print(f"Predicted price: {prediction[0]:.2f} lakh")
The model expects house size in square feet as a 2D array:
model.predict([[1000]])
model.predict([[1500]])
model.predict([[2000]])
Multiple predictions are also supported:
model.predict([
[1000],
[1500],
[2000],
])
The model returns predicted prices in lakhs.
Example:
1000 sq ft → 40.00 lakh
1500 sq ft → 60.00 lakh
2000 sq ft → 80.00 lakh
This is a small educational model trained on artificial data. It should not be used for real-world house-price valuation or financial decisions.