Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,51 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- regression
|
| 5 |
+
- xgboost
|
| 6 |
+
- house-price
|
| 7 |
+
- india
|
| 8 |
+
- real-estate
|
| 9 |
+
- machine-learning
|
| 10 |
+
datasets:
|
| 11 |
+
- house-prices-india
|
| 12 |
+
widget:
|
| 13 |
+
- source: https://huggingface.co/spaces/bryium/house_price
|
| 14 |
+
inference: false
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# House Price Predictor (India)
|
| 18 |
+
|
| 19 |
+
XGBoost model that predicts house prices in **Indian Rupees** using features like location, carpet area, number of bedrooms (BHK), furnishing, and more. Trained on Indian housing data with an R² of ~0.84.
|
| 20 |
+
|
| 21 |
+
## Model Details
|
| 22 |
+
|
| 23 |
+
| | |
|
| 24 |
+
|---|---|
|
| 25 |
+
| **Model type** | XGBoost Regressor |
|
| 26 |
+
| **Task** | Regression (house price prediction) |
|
| 27 |
+
| **Input** | Location, carpet area, BHK, furnishing, status, transaction, etc. |
|
| 28 |
+
| **Output** | Predicted price in ₹ (Indian Rupees) |
|
| 29 |
+
| **R²** | ~0.84 |
|
| 30 |
+
| **RMSE** | ~0.21 (log scale) |
|
| 31 |
+
|
| 32 |
+
## Files
|
| 33 |
+
|
| 34 |
+
| File | Description |
|
| 35 |
+
|------|-------------|
|
| 36 |
+
| `model.joblib` | Trained XGBRegressor |
|
| 37 |
+
| `preprocessor.joblib` | Sklearn ColumnTransformer (imputer + scaler + OneHotEncoder) |
|
| 38 |
+
| `encodings.joblib` | Target/frequency encodings for location & society |
|
| 39 |
+
| `feature_columns.joblib` | Feature column order |
|
| 40 |
+
|
| 41 |
+
## Usage
|
| 42 |
+
|
| 43 |
+
### Load the model
|
| 44 |
+
hon
|
| 45 |
+
import joblib
|
| 46 |
+
from huggingface_hub import hf_hub_download
|
| 47 |
+
|
| 48 |
+
model = joblib.load(hf_hub_download(repo_id="bryium/house-price-predictor", filename="model.joblib"))
|
| 49 |
+
preprocessor = joblib.load(hf_hub_download(repo_id="bryium/house-price-predictor", filename="preprocessor.joblib"))
|
| 50 |
+
encodings = joblib.load(hf_hub_download(repo_id="bryium/house-price-predictor", filename="encodings.joblib"))
|
| 51 |
+
feature_columns = joblib.load(hf_hub_download(repo_id="bryium/house-price-predictor", filename="feature_columns.joblib"))
|