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

4 ビュー (過去 30 日間)
Preeti Prajapati
Preeti Prajapati 2014 年 6 月 3 日
コメント済み: Sriharsha 2018 年 12 月 5 日
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.
  1 件のコメント
mahdis mbioeng
mahdis mbioeng 2018 年 3 月 7 日
is there any way to access the outputs of hidden layers with this? net.outputs{i}.processParams

サインインしてコメントする。

採用された回答

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 件のコメント
Greg Heath
Greg Heath 2018 年 12 月 5 日
input matrix
number of hidden nodes
number of data points
HTH
GREG
Sriharsha
Sriharsha 2018 年 12 月 5 日
Thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSequence 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