Deep learning II - I Practical aspects of deep learning - Normalizing inputs 输入归一化

Normalizing inputs 输入归一化


Deep learning II - I Practical aspects of deep learning - Normalizing inputs 输入归一化
1. 输入归一化能够加快训练速度
2. 首先,将输入减去均值

μ=1mi=1mx(i)

x:=xμ

3. 其次,方差归一化
σ2=1mi=1mx(i)2(meanselementsquare)

x:=x/σ2

4. 使用在test set得到的μ,σ2来处理dev set 或者test set

Deep learning II - I Practical aspects of deep learning - Normalizing inputs 输入归一化

如果输入的变量范围差别很大(0-1,0-1000),那就很有必要使用上述方法