grasimus commited on
Commit
5dd2028
·
verified ·
1 Parent(s): 436bed9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -2
README.md CHANGED
@@ -192,6 +192,7 @@ GROSS SQUARE FEET looks near-zero only because the borough effect dwarfs it on t
192
 
193
  ## Part 4. Feature Engineering & Clustering
194
  **Five new features were engineered to replace or augment the raw inputs:**
 
195
  *LOG_PRICE* - Removes right-skew from the target
196
  *LOG_GROSS_FT* - Makes the size–price relationship more linear.
197
  *Age_at_Sale* - Sale year minus year built.
@@ -225,8 +226,6 @@ How atypical a neighborhood is within its market cluster turns out to be a stron
225
  **Declared Winner:** Gradient Boosting Regressor - highest R², lowest MAE.
226
  The improvement comes from four things: log-transforming the target (makes it learnable), Centroid_Distance (captures neighborhood atypicality), LOG_GROSS_FT (linearizes size–price), and ensemble learning (captures non-linear interactions). Honest caveat: the model is significantly better than the baseline but real estate prediction remains hard - renovation quality, floor level, and exact street-level factors are not in the dataset.
227
 
228
- ## Part 6. Winning Regression Model Export
229
- The Gradient Boosting Regressor is exported to nyc_real_estate_regression_model.pkl with the trained model object and the full list of feature column names. The feature list is essential - the model expects input in exactly the same column order as training. To use it: prepare features → call model.predict(X) → apply np.expm1() to convert from log scale back to dollars.
230
 
231
  ## Part 7. Regression to Classification
232
  The same problem is reframed as classification by converting SALE PRICE into three tiers using quantile binning:
 
192
 
193
  ## Part 4. Feature Engineering & Clustering
194
  **Five new features were engineered to replace or augment the raw inputs:**
195
+
196
  *LOG_PRICE* - Removes right-skew from the target
197
  *LOG_GROSS_FT* - Makes the size–price relationship more linear.
198
  *Age_at_Sale* - Sale year minus year built.
 
226
  **Declared Winner:** Gradient Boosting Regressor - highest R², lowest MAE.
227
  The improvement comes from four things: log-transforming the target (makes it learnable), Centroid_Distance (captures neighborhood atypicality), LOG_GROSS_FT (linearizes size–price), and ensemble learning (captures non-linear interactions). Honest caveat: the model is significantly better than the baseline but real estate prediction remains hard - renovation quality, floor level, and exact street-level factors are not in the dataset.
228
 
 
 
229
 
230
  ## Part 7. Regression to Classification
231
  The same problem is reframed as classification by converting SALE PRICE into three tiers using quantile binning: