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 comentario

is there any way to access the outputs of hidden layers with this? net.outputs{i}.processParams

Iniciar sesión para comentar.

 Respuesta aceptada

Greg Heath
Greg Heath el 4 de Jun. de 2014
Editada: Greg Heath el 6 de Jun. de 2014
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 comentarios

Thank you very much sir.
You can thank him by "Accepting" his answer.
Sriharsha
Sriharsha el 5 de Dic. de 2018
Editada: Greg Heath el 5 de Dic. de 2018
what are X,H,N here?
input matrix
number of hidden nodes
number of data points
HTH
GREG

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 3 de Jun. de 2014

Comentada:

el 5 de Dic. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by