🔥 3-day streak
Databricks Certified Machine Learning Associate116 / 137
Question 116 of 137
A data scientist has assembled all numeric and label-encoded categorical predictors into a single 'features' vector column using VectorAssembler. They now want to train a Spark ML DecisionTreeClassifier and ensure that the columns holding label-encoded categorical values (each with a small number of distinct integer codes) are treated as categorical splits rather than continuous thresholds. Which Spark ML stage should they add to the pipeline before the classifier?
Reviewed for accuracy · Report an issueNext question