QuestionQ19

VerifiedModel Development

Consider this code block:

Question Image

Which statement about this code block is true?

Explanation

VectorAssembler is a Transformer because it directly combines input columns into a vector. StandardScaler is an Estimator because it learns scaling statistics during fit; its fitted StandardScalerModel performs the transformation. LogisticRegression is also an Estimator because it fits a logistic-regression model to training data.

Learn more

Community Discussion

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