🔥 3-day streak
Databricks Certified Machine Learning Associate132 / 137
Question 132 of 137
A data scientist is preparing a customer churn dataset that contains a high-cardinality categorical feature, 'zip_code' (over 30,000 unique values). They decide to use target (mean) encoding, replacing each zip code with the average churn rate observed for that zip code. To avoid inflating validation performance, which approach should they use when computing the encoding?
Reviewed for accuracy · Report an issueNext question