🔥 3-day streak
Databricks Certified Machine Learning Associate89 / 137
Question 89 of 137
A data scientist is training a scikit-learn model on a single-node cluster. Their workflow first applies a StandardScaler to the full training set, then runs GridSearchCV with 5-fold cross-validation on the scaled data. A reviewer flags that this approach can produce overly optimistic validation scores. What is the correct way to restructure the code so that scaling is properly incorporated into the cross-validation process?
Reviewed for accuracy · Report an issueNext question