Issue with trainNetwork() function

I have imported a trainNetwork image into this question, and hopefully you can see to the right of it, where the simulation ends, as this is the most important part, if this is not visible after I post this question, I will resize and repost the image.
I seem to be getting an accuracy at the end of this simulation, that is performing low and is not following the 'darker blue' trend of this simulation.
Could anyone offer any clues as to what might be going on ?
I am trying to interpret what and how this darker blue field of the training plots means, and why my validation classification rate no longer seems to be tracking the darker blue training performance.
Any clues where I should look would be a great help.
Regards,
Eva Riherd

1 Comment

if this is not visible after I post this question, I will resize and repost the image.
It is not necessary to repost an image if you just want to resize it. That can be done within the post editor.

Sign in to comment.

 Accepted Answer

Matt J
Matt J on 20 Jul 2023
Edited: Matt J on 20 Jul 2023
I am trying to interpret what and how this darker blue field of the training plots means,
The light blue line measures accuracy based on the current minibatch of training data that is being processed, and the dark blue is a time-smoothed version of that. The black line is the accuracy as measured from your validation data set.
I seem to be getting an accuracy at the end of this simulation, that is performing low and is not following the 'darker blue' trend of this simulation.
I don't think so. The training accuracy plot has some downward dips that, although infrequent, may be large enough to bring the average training accuracy downward, to a level consistent with the validation curve.
Possibly if you shuffle the training datastore, you might get a less spiky training accuracy plot.

3 Comments

Wow, you responded FAST!!
Much thanks for this response, I really appreciate it.
I <3 MATLAB !
You're welcome, but if the advice worked, please Accept-click the answer.
Much thanks for taking the time to look into this question!

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2023a

Asked:

Eva
on 20 Jul 2023

Commented:

Eva
on 25 Aug 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!