QuestionQ132

VerifiedUsing Spark ML

A Data Scientist at a local sports team must build a model that predicts the probability that each game will sell out. The scientist has received a training dataset in a Spark DataFrame named trainingDF and intends to use two Transformers and one Estimator—T1, T2, and E1.

The solution must be created with SparkML in Python and be repeatable and maintainable because it will run frequently.

Which approach accomplishes this task?

Explanation

A Spark ML DataFrame-based Pipeline defines the ordered Transformer and Estimator stages in one reusable workflow. Calling fit(trainingDF) transforms the DataFrame through T1 and T2, fits E1, and produces a PipelineModel that retains the fitted stages for later use.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!