AI / ML Engineermlintermediate3 interactive MCQs in app
Data preprocessing
scaling impact on distance/gradient vs treesfitting scalers/imputers on train onlyhandling missing values and categorical encoding
Core Concept
Data preprocessing cleans and transforms raw features before model fitting: imputing missing values, encoding categorical categories (one-hot/ordinal), and scaling numeric ranges (StandardScaler or MinMaxScaler). Distance- and gradient-based models (KNN, SVM, logistic regression, neural nets) are sensitive to feature magnitude because a feature in 0–100,000 dominates a feature in 0–1. Tree models are invariant to monotonic scaling.
Worked Example
compute mean/std or median imputer values on X_train ONLY, then call transform() on both X_train and X_test using a scikit-learn Pipeline.
Common Pitfall
calling fit_transform() on the entire dataset before splitting leaks test distribution statistics into training.
Recommended Readings & Practice
Practice Data preprocessing with 3 graded MCQs & written feedback.
Take SOARDO’s free 12-question diagnostic to see how strong you are across your target role and unlock adaptive daily missions.