How to normalize new inputs with mapminmax ?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 ?
0 commentaires
Réponse acceptée
Greg Heath
le 28 Juin 2017
Modifié(e) : Greg Heath
le 28 Juin 2017
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 commentaires
Greg Heath
le 3 Juil 2017
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
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Define Shallow Neural Network Architectures dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!