Downloads · 30 days
0
GlitaJay/california-housing-model
california-housing-model is a machine learning model from GlitaJay. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A regression model trained to predict median house values in California districts using features like median income, location, housing age, and more.
Downloads · 30 days
0
Access
Public
Updated May 1, 2025
Repo size
290 MB
Likes
0
Public
Click a slice to open those files.
.pkl290 MB · 100%
From the Hugging Face model README
A regression model trained to predict median house values in California districts using features like median income, location, housing age, and more.
This model is designed for educational and demo purposes, deployed via a FastAPI backend and suitable for showcasing full-stack ML deployment.
scikit-learnlongitudelatitudehousing_median_agetotal_roomstotal_bedroomspopulationhouseholdsmedian_incomemedian_house_valuefrom huggingface_hub import hf_hub_download
import joblib
model_path = hf_hub_download(repo_id="GlitaJay/california-housing-model", filename="model.joblib")
model = joblib.load(model_path)
sample_input = [[-122.23, 37.88, 41.0, 880.0, 129.0, 322.0, 126.0, 8.3252]]
prediction = model.predict(sample_input)
print(prediction)
| Metric | Score |
|---|---|
| RMSE | 53740.1 |
| R² Score | 0.78 |
model.joblib – serialized model filepreprocessor.joblib – optional, if you saved preprocessing separatelyREADME.md – this model cardThis model is integrated in a FastAPI app, which can be deployed on Render or similar cloud platforms.
Note: Direct inference is not enabled on Hugging Face. Use it via the API described in your linked project.
James Mwangi (GlitaJay)
Aspiring Backend Developer & Data Scientist
GitHub
MIT License – Free to use, modify, and distribute with attribution.