訓練・検証・テスト:比較方法を先に固定する
予測と観察の証拠を記録した後にのみ支援を利用できます。
前提条件
第 28 日の統計。予測・復習ルーチン。
学習目標
評価における訓練/検証/テスト分割の役割と、テストセットを一度だけ読む理由を説明し、調整を始める前に評価プロトコルを固定する。
手順
評価は『汎化するか?』という問いに、モデルが訓練で見ていないデータを使って答えます。訓練分割はパラメータを適合し、検証分割は選択(どのモデル、どの設定か)を導き、テスト分割は最後の手つかずの読み取りです。1,000 例を 60/20/20 に分けると 600 訓練、200 検証、200 テストになります。比較は、すべての候補が同じ分割・同じ指標で採点されるときだけ有効です——結果を見てからではなく、調整の前にプロトコルを固定してください。
演習と予測記録
ある学習者が 1,000 個のラベル付き例を持っています。(a) 60/20/20 で訓練/検証/テストを配分してください。(b) モデル M1 はテストセットで 40 回試した後に選ばれました——プロトコル違反とその帰結を指摘してください。(c) M1 と M2 のスコアを比較する前に同一でなければならない条件を述べてください。
テストの反復読み取りは『テスト』を検証に退化させ、報告値は楽観的に偏ります。比較前に同一であるべきもの:同じ留出データ、同じ指標、同じ前処理。
(a) 600 訓練、200 検証、200 テスト。(b) テストセットがモデル選択に再利用され、報告スコアは上方向に偏ります——違反はテストセットでの選択であり、検証で選択しテストは一度だけ読むのが修正です。(c) 同じテスト分割、同じ指標、同じ前処理と評価コード。でなければ差は解釈不能です。
評価における各分割の役割を述べ、テスト再利用の違反を指摘し、調整前に固定プロトコルのチェックリストを書ける。
公式ソースリソースと権利証跡
Dive into Deep Learning (d2l.ai)
該当セクション・タイムスタンプ: Section: Model Selection, Underfitting, and Overfitting
検証バージョンと日付: Current online edition (Verified: 2026-10-30)
Primary open reference tying evaluation discipline (model selection, underfitting, overfitting) and optimization algorithms (gradient descent, minibatch) to the rest of the curriculum.
Linear algebra, calculus, and probability at the Days 19-28 level.
All required formulas and worked numbers are reproduced as original explanations; the book is further reading.
比較対象候補リソースと選定評価 (2)
Detailed treatment of optimization difficulties (chapter 8) including saddle points and plateaus; all-rights-reserved text kept as a linking-only alternative.
Strong practitioner framing, but organized around the fastai library and video lessons rather than self-contained mathematics.
Google Machine Learning Crash Course
該当セクション・タイムスタンプ: Modules: Training and Test Sets; Validation
検証バージョンと日付: Current online edition (Verified: 2026-10-30)
Industrial, beginner-legible treatment of training/test splitting and overfitting; complements d2l.ai's mathematical framing.
Basic algebra; short self-contained modules.
Split discipline, leakage rules, and metric definitions are fully explained inside the lesson; the course is further reading.
比較対象候補リソースと選定評価 (2)
Co-primary: deeper mathematical coverage of model selection, generalization, and optimization for the mathematics-track capstone.
Normative reference once learners call sklearn; kept as an alternative because these days teach evaluation protocol before library usage.