mapminmax
(To be removed) Process matrices by mapping row minimum and maximum values to
[-1 1]
mapminmax will be removed in a future release. For more information,
see Transition Legacy Neural Network Code to dlnetwork Workflows.
For advice on updating your code, see Version History.
Syntax
Description
Tip
To rescale data for deep learning workflows, use the Normalization name value pair for the input layer.
[
takes a Y,PS] = mapminmax(X,YMIN,YMAX)N-by-Q matrix, X
and optionally a minimum and a maximum value for each row of Y,
YMIN and YMAX, and returns a
N-by-Q matrix, Y, and a
process settings that allow consistent processing of values,
PS.
mapminmax processes matrices by normalizing the minimum and
maximum values of each row to [YMIN,
YMAX].
Examples
Input Arguments
Output Arguments
More About
Algorithms
It is assumed that X has only finite real values, and that the
elements of each row are not all equal. (If xmax=xmin or if either
xmax or xmin are non-finite, then
y=x and no change occurs.)
y = (ymax-ymin)*(x-xmin)/(xmax-xmin) + ymin;
Version History
Introduced in R2006aSee Also
fitrnet (Statistics and Machine Learning Toolbox) | fitcnet (Statistics and Machine Learning Toolbox) | trainnet | trainingOptions | dlnetwork