For one hidden layer with "tansig","purelin" transfer functions the post process Fcns = {'removeco​nstantrows​','mapminm​ax'} is done after tansig or purlin?

3 次查看(过去 30 天)
I have one hidden layer with "tansig","purelin" transfer function. I used net.inputs{1}.processFcns = {'removeconstantrows','mapminmax'}; and net.outputs{2}.processFcns = {'removeconstantrows','mapminmax'}; as post processing, This post process is done after "tansig" or after "purelin"?

回答(1 个)

Jayanti
Jayanti 2025-7-8
Hi Sanaz,
In MATLAB’s neural network architecture, each layer is assigned only one transfer function. Since you mentioned both 'tansig' and 'purelin'. I am assuming 'tansig' is applied to the hidden layer and 'purelin' is applied to the output layer.
The output postprocessing functions defined are always applied after the final layer of the network which in your case uses the 'purelin' transfer function. So, the postprocessing happens after 'purelin', not after 'tansig'.
Hope this is helpful!

类别

Help CenterFile Exchange 中查找有关 Deep Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by