QuestionQ19Verified/Model DevelopmentCopy linkReport a problemAsk AstroTutorSave questionConsider this code block: Which statement about this code block is true?AVectorAssembler is an Estimator, StandardScaler is an Estimator, and LogisticRegression is a Transformer.BVectorAssembler is a Transformer, StandardScaler is a Transformer, and LogisticRegression is an Estimator.CVectorAssembler is a Transformer, StandardScaler is an Estimator, and LogisticRegression is an Estimator.DVectorAssembler is an Estimator, StandardScaler is a Transformer, and LogisticRegression is a Transformer.Show AnswerAnswerExplanationVectorAssembler 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 moreVectorAssembler — PySpark documentationStandardScaler — Spark Java APIShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion