How can I customize the NARX neural network Input and Feedback Pre/Post-Processing Functions?
Ältere Kommentare anzeigen
Hi,
I am new to neural networks. I have 1 target and 4 external inputs and I need to customize the NARX neural network Input and Feedback Pre/Post-Processing Functions so as to map onto the range [0.2 0.8] instead of the default [-1 1]. How can I modify these two lines in my script, and what else can I do?
net.inputs{1}.processFcns = {'removeconstantrows','mapminmax'};
net.inputs{2}.processFcns = {'removeconstantrows','mapminmax'};
Thanks.
Akzeptierte Antwort
Weitere Antworten (1)
Sree Srinivasan
am 11 Okt. 2012
0 Stimmen
I posed your question to the authors of Matlab ANN. Here is a response. It makes sense, but I have not tested it.
The MAPMINMAX output range can be set to 0.2 to 0.8 as follows:
net.inputs{1}.processFcns = {'removeconstantrows','mapminmax'}; net.inputs{1}.processParams{2} = struct('ymin',0.1,'ymax',0.9);
Let me know if that does not accomplish what you are trying to do.
Both network input and output subobjects have the processParams field so the output's MAPMINMAX can be customized to map targets to layer output ranges other than [-1,1] also. For instance for a two-layer network where MAPMINMAX is the second processing function:
net.outputs{2}.processParams{2} = struct('ymin',0.2,'ymax',0.8);
Kategorien
Mehr zu Deep Learning Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!