🔥 3-day streak
Databricks Certified Machine Learning Associate135 / 137
Question 135 of 137
A data scientist is preparing a Spark DataFrame for a regression model. They plan to standardize a numeric feature using a StandardScaler (subtracting the mean and dividing by the standard deviation). To avoid data leakage while producing an honest estimate of generalization performance, when should the mean and standard deviation used for scaling be computed?
Reviewed for accuracy · Report an issueNext question