For one hidden layer with "tansig","purelin" transfer functions the post process Fcns = {'removeconstantrows','mapminmax'} is done after tansig or purlin?
3 views (last 30 days)
Show older comments
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"?
0 Comments
Answers (1)
Jayanti
on 8 Jul 2025
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!
0 Comments
See Also
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!