Skip to content
RED SAGSkills
medium10 pts · first answer countsml-pipelinesdata-leakagescikit-learn

Scaling before splitting

What is wrong with this preprocessing order?

X_scaled = StandardScaler().fit_transform(X)
X_train, X_test, y_train, y_test = train_test_split(X_scaled, y)
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions