matlab nomalization,Batch normalization layer

Algorithms

The batch normalization operation normalizes the elements

xi of the input by first calculating the mean

μB and variance

σB2 over the

spatial, time, and observation dimensions for each channel independently. Then, it

calculates the normalized activations as

xi^=xi−μBσB2+ϵ,

where ϵ is a constant that improves numerical

stability when the variance is very small.

To allow for the possibility that inputs with zero mean and unit variance are not optimal for

the operations that follow batch normalization, the batch normalization operation further

shifts and scales the activations using the transformation

yi=γx^i+β,

where the offset β and scale factor

γ are learnable parameters that are updated during network

training.

To make predictions with the network after training, batch normalization requires a fixed

mean and variance to normalize the data. This fixed mean and variance can be calculated from

the training data after training, or approximated during training using running statistic

computations.

If the 'BatchNormalizationStatistics' training option is 'moving', then the software approximates the batch normalization statistics during training using a running estimate and, after training, sets the TrainedMean and TrainedVariance properties to the latest values of the moving estimates of the mean and variance, respectively.

If the 'BatchNormalizationStatistics' training option is 'population', then after network training finishes, the software passes through the data once more and sets the TrainedMean and TrainedVariance properties to mean and variance computed from the entire training data set, respectively.

The layer uses the TrainedMean and TrainedVariance to normalize the input during prediction.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值