Normalization formulas for neural networks

Hello everybody,

today I want to write a short note about normalization for neural networks. 

So, first goes formula how to normalize input in range [0, 1] ( taken from here ): 

Another good for me example is going below ( taken from here ):

p = [4 4 3 3 4;            
     2 1 2 1 1;
     2 2 2 4 2];
a = min(p(:));
b = max(p(:));
ra = 0.9;
rb = 0.1;
pa = (((ra-rb) * (p - a)) / (b - a)) + rb;

In this example ra stands for maximum value of range, rb stands for minimum value of range that we want to make. 

No Comments

Add a Comment