Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -992,8 +992,8 @@
"metadata": {},
"outputs": [],
"source": [
"X_train_lm = X_train_lm.reshape(-1,1)\n",
"X_test_lm = X_test_lm.reshape(-1,1)"
"X_train_lm = X_train_lm.values.reshape(-1,1)\n",
"X_test_lm = X_test_lm.values.reshape(-1,1)"
]
},
{
Expand Down Expand Up @@ -1468,8 +1468,8 @@
"source": [
"# One aspect that you need to take care of is that the 'fit_transform' can be performed on 2D arrays only. So you need to\n",
"# reshape your 'X_train_scaled' and 'y_trained_scaled' data in order to perform the standardisation.\n",
"X_train_scaled = X_train.reshape(-1,1)\n",
"y_train_scaled = y_train.reshape(-1,1)"
"X_train_scaled = X_train.values.reshape(-1,1)\n",
"y_train_scaled = y_train.values.reshape(-1,1)"
]
},
{
Expand Down