QuestionQ60
VerifiedModel DevelopmentA machine learning engineer wants to build a Spark ML linear regression model that predicts a hotel room’s price. They use the Spark DataFrame train_df to train the model.
The Spark DataFrame train_df has the following schema:

The machine learning engineer provides the following code block:

Which of the following modifications must the machine learning engineer make to complete the task?
Community Discussion