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

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

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일

1 개 추천

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

Thank you very much sir.
You can thank him by "Accepting" his answer.
Sriharsha
Sriharsha 2018년 12월 5일
편집: Greg Heath 2018년 12월 5일
what are X,H,N here?
input matrix
number of hidden nodes
number of data points
HTH
GREG

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

질문:

2014년 6월 3일

댓글:

2018년 12월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by