How to generate initial weights for back-propagation neural network (BPNN) using MATLAB R2012a?
Afficher commentaires plus anciens
I am trying to predict future values using BPNN, with 1 input and output neuron respectively and also 1 layer of hidden layer. And I change the number of hidden neurons from 2 to 10. For example, I set the number of hidden neurons (N) as 10 first. So, I want to generate the weights (10 weights from input to hidden, and 10 from hidden to output),and I write this:
s=rng; m=rand(10,2)
Is this the correct way? However, when I change the N to 7, it gives me the same predicted values as N=10.
Réponse acceptée
Plus de réponses (1)
Greg Heath
le 19 Mar 2015
Most of the neural network functions create their own initial weights.
See the documentation examples
help fitnet
doc fitnet
Or, if by prediction you mean predict future values,
help narxnet
doc narxnet
Hope this helps.
Thank you for formally accepting my answer
Greg
1 commentaire
soo rachael
le 19 Mar 2015
Catégories
En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!