Skip to content

Commit 615fa8f

Browse files
author
Aaron England
authored
Add files via upload
1 parent e3be579 commit 615fa8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Chapter 2/Activities/Activity_04.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
# scale X_train and X_test
2727
from sklearn.preprocessing import StandardScaler
28-
model = StandardScaler()
29-
X_train_scaled = model.fit_transform(X_train)
30-
X_test_scaled = model.fit_transform(X_test)
28+
scaler = StandardScaler()
29+
X_train_scaled = scaler.fit_transform(X_train)
30+
X_test_scaled = scaler.fit_transform(X_test)
3131

0 commit comments

Comments
 (0)