QuestionQ49

VerifiedUsing Spark ML

A Data Scientist is building a Spark ML pipeline for a customer dataset containing the numeric features age, annual_income, and transaction_count, all of which vary widely. Because the selected algorithm requires inputs normalized to the [0,1] range, they must apply the appropriate Spark ML transformer to these features.

Which Spark ML transformer should the Data Scientist use to scale every feature to the [0,1] range?

Explanation

Spark ML's MinMaxScaler rescales every feature independently to a specified minimum and maximum range. Its default output range is [0,1], making it appropriate when all numeric features must be normalized to that interval.

Community Discussion

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