Skip to content

Commit 80bda65

Browse files
committed
.
1 parent 0ff1dc8 commit 80bda65

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.ipynb_checkpoints/
22
*.npy
33
*.pkl
4+
trash

models/hist_benchmarks.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@
5454
print "*" * 80
5555
print category
5656

57-
X = merged[['NumberBedrooms', 'NumberBathrooms', 'LivingArea', 'DaysOnMarket', 'Composite_HPI']]
57+
X = merged[['NumberBedrooms', 'NumberBathrooms', 'LivingArea', 'DaysOnMarket', 'Composite_HPI', 'AskingPrice']]
58+
#X = merged.drop(['Borough', 'Category', 'Address', 'LotSize', 'Lat', 'Lng', 'AskingPrice', 'PriceSold'], axis=1, inplace=False)
5859
X_cat = merged[categorical_columns]
5960
Y = merged[['PriceSold']]
6061

@@ -107,7 +108,7 @@
107108
X_train = np.concatenate([X_train, X_train_cat], axis=1)
108109
X_test = np.concatenate([X_test, X_test_cat], axis=1)
109110

110-
clf = GradientBoostingRegressor()
111+
clf = GradientBoostingRegressor(n_estimators=100)
111112
clf.fit(X_train, Y_train)
112113
preds = clf.predict(X_test).astype(float)
113114

0 commit comments

Comments
 (0)