🤖 Dropout Expected Output Calculator
Compute the expected output after dropout from the keep probability, plus the inference-time scaling factor that keeps train and test expectations aligned.
📐 計算公式 / 原理
保留機率 p = 1 − rate;訓練期望 E[x] = p·x;縮放因子 = 1/p(inverted dropout)
訓練時按 rate 隨機置零並在保留分支乘 1/p,使期望與推理一致,推理階段不做任何丟棄也不縮放。這相當於對大量稀疏子網路做隱式整合,抑制神經元共適應;rate 常取 0.1–0.5,過大反而欠擬合。
📐 計算公式與說明
期望輸出與推理縮放(本頁程式碼口徑,與上框同源):期望輸出=x×(1−rate)(訓練期隨機置零後均值保持);期望活躍神經元=n×(1−rate)(個,取整);推理縮放因子=1÷(1−rate)(inverted dropout,rate=1 時發散按 — 顯示)。校驗:無強校驗,空值按 0 兜底。判據:無固定分級,期望輸出恆等於輸入×保留機率,縮放因子與其互為倒數。
Dropout 率通常取 0.2-0.5。