QuestionQ83
VerifiedUsing Spark MLA Data Scientist is building an MLlib Pipeline to predict customer churn. The data includes a categorical feature named vehicle_type, and the Data Scientist wants to one-hot encode this feature for logistic-regression models. During inference, the Pipeline must skip rows that contain an unseen category.
Which method correctly transforms the categorical feature?
Community Discussion