Reputation: 25
I am currently in the process of learning to utilise machine learning / tensorflow etc. I understand what Normalization means (thanks Google): Normalization is a process that changes the range of pixel intensity values. Applications include photographs with poor contrast due to glare, for example.
I came across someones code - below these are Normalization techniques someone used. But I am having trouble understanding what each Normalization Technique below do?
Would appreciate if someone could explain.
normalizers = [('x - 127.5', lambda x: x - 127.5),
('x/127.5 - 1.0', lambda x: x/127.5 - 1.0),
('x/255.0 - 0.5', lambda x: x/255.0 - 0.5),
('x - x.mean()', lambda x: x - x.mean()),
('(x - x.mean())/x.std()', lambda x: (x - x.mean())/x.std())]
Upvotes: 0
Views: 189
Reputation: 1206
Try inputting endpoints for each one of them to find the range.
Upvotes: 2