フリー問題

Databricks Certified Machine Learning Professional のフリー問題 4 / 20 問目

問題文

A team wants to tune a GBTClassifier that sits at the end of a Pipeline containing a StringIndexer and a VectorAssembler. They are worried about leakage from the preparation steps into the validation folds. Where should the CrossValidator be placed?

選択肢

  1. Wrap the entire Pipeline in the CrossValidator, so that every fold re-fits the preparation stages on that fold's training portion only.
  2. Fit the preparation stages once on the full training set, then cross-validate only the classifier on the transformed output, reusing that one fit.
  3. Place a CrossValidator inside the Pipeline as one of its stages, positioned before the classifier, so each fold sees it run.
  4. Skip cross-validation and rely on a single train-validation split, because a Pipeline already isolates the preparation stages from the validation data.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。