One of these lines will silently wreck your model. Can you spot it?
What’s the bug—and why does it matter?
scaler = StandardScaler()
X_train = scaler.fit_transform(X_train)
X_test = scaler.fit_transform(X_test)
model = LogisticRegression()
model.fit(X_train, y_train)
Hint: It won’t throw an error, but your model's performance might lie to you.
Drop your answer below.