Skip to content

Commit f4033e3

Browse files
authored
Merge pull request #333 from HanzTantiangco/patch-4
fix: Scale the targets for test data
2 parents 18d0145 + 94e0c2e commit f4033e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

project-bikesharing/Predicting_bike_sharing_data.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@
134134
"for each in quant_features:\n",
135135
" mean, std = data[each].mean(), data[each].std()\n",
136136
" scaled_features[each] = [mean, std]\n",
137-
" data.loc[:, each] = (data[each] - mean)/std"
137+
" data.loc[:, each] = (data[each] - mean)/std\n"
138+
" test_data.loc[:, each] = (test_data[each] - mean)/std"
138139
]
139140
},
140141
{

0 commit comments

Comments
 (0)