how can I access the outputs of the hidden layers in a neural network?
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Preeti Prajapati
le 3 Juin 2014
Commenté : Sriharsha
le 5 Déc 2018
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 commentaire
mahdis mbioeng
le 7 Mar 2018
is there any way to access the outputs of hidden layers with this? net.outputs{i}.processParams
Réponse acceptée
Greg Heath
le 4 Juin 2014
Modifié(e) : Greg Heath
le 6 Juin 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Sequence and Numeric Feature Data Workflows dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!