๐ Bug HuntAI AI & ML Mediumโก+20 XP
Data Leakage
This code has data leakage. Find the bug.
๐ Find the bug
1
scaler = StandardScaler()2
X_scaled = scaler.fit_transform(X)3
X_train, X_test = train_test_split(X_scaled, test_size=0.2)๐ The bug is on line 2