How to avoid declaration of neural network in an m file again and again?

1 visualizzazione (ultimi 30 giorni)
I am using a feed forward neural network with keyword feedforwardnet in an m file.Whenever I run my m file neural network gives different results may be because of new weights and biases for each new declaration of neural network.I am not using init() function which initializes weights and biases each time; even then it is happening.It seems to happen because of new declaration of network each time m file is run.Please help me to avoid this so that I can obtain consistent results from neural network.

Risposta accettata

Greg Heath
Greg Heath il 1 Giu 2013
rng(0)
% help rng %doc rng
Thank you for formally acceptingmy answer
Greg

Più risposte (0)

Categorie

Scopri di più su Sequence and Numeric Feature Data Workflows in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by