필터 지우기
필터 지우기

How to normalize new inputs with mapminmax ?

조회 수: 1 (최근 30일)
Hamza Ali
Hamza Ali 2017년 6월 27일
댓글: Greg Heath 2017년 7월 3일
Hello, I have normalized my data with mapminmax which gives values between -1 and 1. However, when I present new inputs to my network, knowing that the max of these is greater than the maximum of the training data, I will have As the normalization interval [-1,1.5]. what do you think ?

채택된 답변

Greg Heath
Greg Heath 2017년 6월 28일
편집: Greg Heath 2017년 6월 28일
You do not HAVE to normalize anything because the neural net AUTOMATICALLY normalizes input and target to [-1,1].
HOWEVER, I RECOMMEND USING MAPSTD BEFORE TRAINING in order to detect and either modify or remove outliers.
My advice:
1. Size input and target matrices
2. Plot x, t, and t vs x
3. Apply MAPSTD to deal with outliers
4. If outliers are modified or removed,
replot the affected variables.
5. Train and obtain e = t-y
6. plot y & t and e
Hope this helps
Thank you for formlly accepting my answer.
Greg
  댓글 수: 2
Hamza Ali
Hamza Ali 2017년 7월 1일
Thank you for your answer. I added these two instructions before training my networks.
net.input.processFcns = {'removeconstantrows','mapminmax','mapstd'};
net.output.processFcns = {'removeconstantrows','mapminmax','mapstd'};
Greg Heath
Greg Heath 2017년 7월 3일
No.!
Use MAPSTD to filter (i.e., delete or modify ) data for which
(z-meanz)./stdz > yourtreshold
Plotting will help determine what threshold to use for outlier deletion and what threshold to use for outlier modification.
Then use the resulting unnormalized filtered data as inputs to the training algorithm and proceed as usual using defaults.
Although you could
a. Use the normalized filtered data as inputs
and/or
b. Use a nondefault transformation for learning and testing.
Why in the world would you want to juggle two transformations at the same time when it isn't necessary?
Hope this helps,
Greg

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by