normalization for neural network

조회 수: 9 (최근 30일)
azie
azie 2013년 5월 28일
need clarification on normalization.
I have 3 inputs (with different units), 1 output and a total of 27 samples. 21 samples will be used for training and another 6 samples for testing. my inputs and output is not in range 0 to 1. so i need to normalize it.my questions is
Do i need to normalize it by column or row or input/output? let say, here are the first 3 samples of inputs and outputs
  • inputs >> output
  • 3 45 -10 >> 3
  • 5 55 -3 >> 56
  • 6 23 -4 >> 32
*note that all 3 inputs are in different units
so, do i need to normalize by row (3 45 -10) or by column (3 5 6) or using all inputs [3 45 -10; 5 55 -3; 6 23 -4] without considering the units at the same time?
i want to normalize in 0.1-0.9 range. can i used mapminmax?

채택된 답변

Greg Heath
Greg Heath 2013년 5월 30일
All of the current NN designs use mapminmax by default. However, for purposes of understanding, I use zscore (you can use mapstd) for pre-training analysis and plotting. For convenience, I let the design function use the default mapminmax just because it is a pain to remove it.
There is absolutely no reason whatsoever to use 0.1-0.9.
Why would you want to normalize columns???
Hope this helps.
Thank you for formally accepting my answer
Greg
  댓글 수: 2
azie
azie 2013년 6월 11일
each column will has different dimensional units.so, should i normalize the input according to their units or i can just normalize according to input samples(which will have 3 different dimensional units)?
Greg Heath
Greg Heath 2013년 6월 17일
To use the NNTBX, variables are rows, and samples are columns. Normalize each variable row according to its own summary stats.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by