We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3be579 commit 615fa8fCopy full SHA for 615fa8f
Chapter 2/Activities/Activity_04.py
@@ -25,7 +25,7 @@
25
26
# scale X_train and X_test
27
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)
+scaler = StandardScaler()
+X_train_scaled = scaler.fit_transform(X_train)
+X_test_scaled = scaler.fit_transform(X_test)
31
0 commit comments