フリー問題

PyTorch Certified Associate のフリー問題 20 / 20 問目

問題文

A team has one dataset directory and needs separate training and validation pipelines: augmentation only for training, but the same normalization for both. Which arrangement fits?

選択肢

  1. Apply the augmentation inside the collate function for the training loader.
  2. Apply augmentation to both and average the validation results.
  3. Build two transform pipelines that share the normalization step and give each one to its own dataset instance.
  4. Use a single dataset instance and switch its transform attribute at the start of each phase, which is the documented approach because it guarantees that the two phases never see inconsistent preprocessing.

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

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