MATLAB Answers

0

Different results in training a CNN with Matlab 2018a and Matlab 2019a

Asked by María Begoña Rojas on 19 Jul 2019
Latest activity Answered by Faraz Naqvi on 26 Jul 2019
Hi, I am training a CNN of classification.
I have trained it with the same seed in Matlab 2018a and Matlab 2019a, after adapting the initialization algorithm in the convolutional layers and the fully connected layer to 'narrow-nomal' in Matlab 2019a, in order to make it comparable. As well, I have set the validation patience in 12 for both releases.
However, I am still getting far different results. Is there anything else that I should take into account to have the same training results? Are there others updates in Matlab 2019a that I should consider?
Thank you in advance

  0 Comments

Sign in to comment.

2 Answers

Answer by Greg Heath
on 20 Jul 2019

You are making the task difficult by going backwards.
Start with a single hidden node and add nodes one at a time.
Hope this helps
Greg

  0 Comments

Sign in to comment.


Answer by Faraz Naqvi on 26 Jul 2019

I also had this problem. In Matlab 2019 there are additional settings, if you see the properties of layers and compare them with the layer properties from previous version i.e. Matlab 2018 you will observe some extra fields in Matlab 2019.
For me, model model had 'WeightsInitializer' 'narrow-normal' is previous and 'glorot' in newer version. You can look at there aforemention link.

  0 Comments

Sign in to comment.