How can I customize the NARX neural network Input and Feedback Pre/Post-Processing Functions?
显示 更早的评论
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.
采纳的回答
更多回答(1 个)
Sree Srinivasan
2012-10-11
0 个投票
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);
类别
在 帮助中心 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!