Skip to main content
AI & ML Bug Hunt Easy +10 XP

Feature Not Scaled

The model performs poorly despite good data.

AI & MLFind the bug
1from sklearn.svm import SVC
2model = SVC()
3model.fit(X_train, y_train)
The bug is on line 2

Select the correct fix

Show answer and explanation

Answer: Apply StandardScaler before fitting SVM

SVMs are sensitive to feature scale. Features with large ranges dominate. Always scale features before training distance-based models.

Hint: SVMs rely on distances — scale matters.

What this challenge tests

Bug Hunt in AI & ML: preprocessing, scaling, svm.

Related challenges