I am getting different accuracy after each run in DNN.
Afficher commentaires plus anciens
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 commentaires
Walter Roberson
le 25 Juin 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
le 25 Juin 2020
Kanika Gupta
le 25 Juin 2020
Modifié(e) : Walter Roberson
le 25 Juin 2020
krishna Chauhan
le 25 Juin 2020
Walter Roberson
le 25 Juin 2020
Can you attach your code and data? You can zip it all up and attach the zip.
krishna Chauhan
le 26 Juin 2020
Modifié(e) : krishna Chauhan
le 26 Juin 2020
krishna Chauhan
le 26 Juin 2020
krishna Chauhan
le 27 Juin 2020
Réponses (1)
Aditya Patil
le 19 Août 2020
0 votes
Set a random seed using the rng function. Otherwise, during each run, a different random seed might be selected, resulting in different results.
1 commentaire
krishna Chauhan
le 25 Août 2020
Catégories
En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!