I am getting different accuracy after each run in DNN.
Mostra commenti meno recenti
Hello there
I am using a simple DNN architecture , with 24 layers in total, containing CNN and classification layer only. for 10 epochs I am getting a diffrent accuracy every time is it possible. Also the traing graph is not settled till end of training, I tried for 50 epochs too.
any help?
8 Commenti
Walter Roberson
il 25 Giu 2020
I think it likely that there is random initialization going on.
Try using rng() with a fixed seed, such as
rng(655321)
just before each training session, to see whether you get the same result each time.
krishna Chauhan
il 25 Giu 2020
Kanika Gupta
il 25 Giu 2020
Modificato: Walter Roberson
il 25 Giu 2020
krishna Chauhan
il 25 Giu 2020
Walter Roberson
il 25 Giu 2020
Can you attach your code and data? You can zip it all up and attach the zip.
krishna Chauhan
il 26 Giu 2020
Modificato: krishna Chauhan
il 26 Giu 2020
krishna Chauhan
il 26 Giu 2020
krishna Chauhan
il 27 Giu 2020
Risposte (1)
Aditya Patil
il 19 Ago 2020
0 voti
Set a random seed using the rng function. Otherwise, during each run, a different random seed might be selected, resulting in different results.
1 Commento
krishna Chauhan
il 25 Ago 2020
Categorie
Scopri di più su Deep Learning Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!