how can I access the outputs of the hidden layers in a neural network?

7 次查看(过去 30 天)
I have a 2 hidden layer network. I trained it using a set of input output data but after training I want to access the outputs of the hidden layers for applying SVD on the hidden layer output. Please let me know how can I do it.
Thank You.

采纳的回答

Greg Heath
Greg Heath 2014-6-4
编辑:Greg Heath 2014-6-6
Take the I-H-O net and create an I-H net with no hidden layer.
See the section in the documentation on custom nets.
ADDITION:
Or, you can just write the code. If there is no normalization
IW = cell2mat(net.IW); b1 = cell2mat(net.b{1});
h = tansig( IW*x + repmat( b1,H,N ) );
Hope this helps.
Thank you for formally accepting my answer.
Greg
  5 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by