Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: en
|
| 3 |
+
datasets:
|
| 4 |
+
- house-prices-advanced-regression-techniques
|
| 5 |
+
tags:
|
| 6 |
+
- regression
|
| 7 |
+
- linear-regression
|
| 8 |
+
- scikit-learn
|
| 9 |
+
- tabular-data
|
| 10 |
+
- house-price-prediction
|
| 11 |
+
- india
|
| 12 |
+
metrics:
|
| 13 |
+
- r2
|
| 14 |
+
- rmse
|
| 15 |
+
license: mit
|
| 16 |
+
model-index:
|
| 17 |
+
- name: House Price Prediction India - Linear Regression
|
| 18 |
+
results:
|
| 19 |
+
- task:
|
| 20 |
+
type: regression
|
| 21 |
+
name: Tabular Regression
|
| 22 |
+
dataset:
|
| 23 |
+
name: House Prices (Kaggle)
|
| 24 |
+
type: house-prices-advanced-regression-techniques
|
| 25 |
+
metrics:
|
| 26 |
+
- type: r2
|
| 27 |
+
value: 0.87
|
| 28 |
+
- type: rmse
|
| 29 |
+
value: 32000
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
# π‘ House Price Prediction Model (India)
|
| 33 |
+
|
| 34 |
+
A regression model trained on Kaggle's House Prices dataset to predict sale prices of residential homes in India based on features like square footage, location, and number of bedrooms.
|
| 35 |
+
|
| 36 |
+
---
|
| 37 |
+
|
| 38 |
+
## π Model Details
|
| 39 |
+
|
| 40 |
+
| Detail | Description |
|
| 41 |
+
|----------------|----------------------|
|
| 42 |
+
| **Model type** | Linear Regression |
|
| 43 |
+
| **Framework** | Scikit-learn |
|
| 44 |
+
| **Language** | Python |
|
| 45 |
+
| **Task** | Regression |
|
| 46 |
+
| **License** | MIT or Apache-2.0 |
|
| 47 |
+
|
| 48 |
+
---
|
| 49 |
+
|
| 50 |
+
## π Intended Use
|
| 51 |
+
|
| 52 |
+
This model is built for **educational and experimental use**. It demonstrates the use of basic machine learning techniques like:
|
| 53 |
+
|
| 54 |
+
- Linear Regression
|
| 55 |
+
- Feature Engineering
|
| 56 |
+
- Data Cleaning
|
| 57 |
+
- Model Evaluation (RMSE, RΒ²)
|
| 58 |
+
|
| 59 |
+
---
|
| 60 |
+
|
| 61 |
+
## π Dataset
|
| 62 |
+
|
| 63 |
+
- **Source**: [Kaggle House Prices β Advanced Regression Techniques](https://www.kaggle.com/competitions/house-prices-advanced-regression-techniques)
|
| 64 |
+
- **Features Used** (example subset):
|
| 65 |
+
- `GrLivArea` β Above ground living area
|
| 66 |
+
- `OverallQual` β Overall material and finish quality
|
| 67 |
+
- `YearBuilt` β Original construction year
|
| 68 |
+
- `GarageCars` β Number of cars in garage
|
| 69 |
+
- `TotalBsmtSF` β Total basement area
|
| 70 |
+
|
| 71 |
+
---
|
| 72 |
+
|
| 73 |
+
## βοΈ How to Use
|
| 74 |
+
|
| 75 |
+
```python
|
| 76 |
+
import joblib
|
| 77 |
+
import pandas as pd
|
| 78 |
+
|
| 79 |
+
# Load trained model
|
| 80 |
+
model = joblib.load("house_price_model.pkl")
|
| 81 |
+
|
| 82 |
+
# Create input features
|
| 83 |
+
input_data = pd.DataFrame({
|
| 84 |
+
"GrLivArea": [1500],
|
| 85 |
+
"OverallQual": [7],
|
| 86 |
+
"YearBuilt": [2005],
|
| 87 |
+
"GarageCars": [2],
|
| 88 |
+
"TotalBsmtSF": [800]
|
| 89 |
+
})
|
| 90 |
+
|
| 91 |
+
# Make prediction
|
| 92 |
+
predicted_price = model.predict(input_data)
|
| 93 |
+
print(predicted_price)
|