Whenever i run my neural network I get different result in nftool

1 visualizzazione (ultimi 30 giorni)
I built my neural network using only nftool without writing code.Whenever i run my neural network I get different result. What can I do to have the same result?

Risposte (1)

Walter Roberson
Walter Roberson il 23 Ago 2018
This is expected. The default initialization function for weights is random.
You can use rng() before every run that initializes the weights, or you can use a custom weight initialisation that is not random.
  8 Commenti
Kangujam
Kangujam il 24 Ago 2018
STATE = trainNetwork(STATE,percentValidate,percentTest,trainingFcnIndex); The above line of code is at line 77 and I have added rng() just above it.I have run it for same number of neuron but still different answers are obtained.

Accedi per commentare.

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