I am getting different accuracy after each run in DNN.
Ältere Kommentare anzeigen
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 Kommentare
Walter Roberson
am 25 Jun. 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
am 25 Jun. 2020
Kanika Gupta
am 25 Jun. 2020
Bearbeitet: Walter Roberson
am 25 Jun. 2020
krishna Chauhan
am 25 Jun. 2020
Walter Roberson
am 25 Jun. 2020
Can you attach your code and data? You can zip it all up and attach the zip.
krishna Chauhan
am 26 Jun. 2020
Bearbeitet: krishna Chauhan
am 26 Jun. 2020
krishna Chauhan
am 26 Jun. 2020
krishna Chauhan
am 27 Jun. 2020
Antworten (1)
Aditya Patil
am 19 Aug. 2020
0 Stimmen
Set a random seed using the rng function. Otherwise, during each run, a different random seed might be selected, resulting in different results.
1 Kommentar
krishna Chauhan
am 25 Aug. 2020
Kategorien
Mehr zu Deep Learning Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!