Downloads · 30 days
0
tomer7934/USA-RealEstate-Regression-RF
USA-RealEstate-Regression-RF is a machine learning model from tomer7934. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Student Name: Tomer Naimi Course: Intro to Data Science ---
Downloads · 30 days
0
Access
Public
Updated Dec 10, 2025
Repo size
41.6 MB
Likes
0
Public
Click a slice to open those files.
.zip40.1 MB · 92%
From the Hugging Face model README
| Action | Analytical Justification | Implication |
|---|---|---|
| Extreme Outliers (Capping) | Applied Capping at 99.5th Percentile to all numerical features. | Methodological Necessity: Stabilized the training data against massive outliers ($1B Price, 473 Beds), which would otherwise collapse any predictive model. |
| Skewness Correction | Performed Log Transformation on the target variable (price). | Mitigated the strong positive skew in the price distribution, essential for meeting Linear Regression's underlying assumptions. |
| Feature Augmentation (FE) | Introduced Clustering Feature (KMeans ID) and One-Hot Encoding (OHE). | Crucial Step: Overcame the zero-correlation problem by injecting complex, non-linear location information into the model. |
| Data Integrity | Imputed ~16% missing values with Mode/Median. | Preserved statistical power by avoiding the massive loss of approximately 850 data points. |
| Model Name | R-squared ($R^2$) | Score Improvement | Critical Insight |
|---|---|---|---|
| Baseline (Linear Regression) | 0.3793 | N/A | Failure Confirmed: Only 38% of price variance is linearly explained. Validated the need for advanced modeling. |
| Improved (Random Forest) | 0.6019 | $\mathbf{+58%}$ Increase in R2 | The Winner: Captured non-linear interactions and proved the direct value of the Engineered Features (Clustering and OHE). |
Visualization: Bar Plot of Feature Importances
bath (39% importance) and the zip_code (24% importance). This reinforces that price is determined by Convenience and Micro-Location rather than simple square footage.random_forest_improved_model.pkl (R2: 0.6019)logistic_regression_model.pkl (F1: 0.11)