← All topics
Quiz: Feature Engineering: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. Which column should be one-hot encoded rather than mapped to 1, 2, 3?
- Q2. What does this print? (code)
- Q3. Where must the mean and standard deviation for standardisation come from?
- Q4. A new value is larger than the training maximum. What does min-max scaling (fitted on training data) give it?
- Q5. Why did the nearest neighbour change after scaling in the k-NN example?
- Q6. Which model does NOT need feature scaling?
- Q7. What does this print? (code)
- Q8. Why log-transform monthly spend in rupees?
- Q9. Which is a leakage feature when predicting whether a student will be placed?
- Q10. What does pd.cut(ages, bins=[0, 21, 25, 100], labels=["≤21", "22-25", "26+"]) do?