MATLAB: How to handle labels using fileDatastore in a CNN

cnnfiledatastoreinputlayerlabelstrainnetwrok

I have a collection of 50x1x12 mat files, that I need to upload into some datastore to subsequently pass into a convolutional neural network, how can I handle the labels of this files?, what datastore should I use?,
I have been trying with file datastore, the filedatastore does not handle the labels in the same way as the imagedatastore does getting them from the folder.
-What datastore can I use
-if I use filedatastore how can I handle the labels after getting them from the foler and in the moment of use net = trainNetwork( ? );
-how the inputlayer should initially set
I really appreacite the help I have been stuck with this for along time.

Best Answer

Hi Mauricio,
You can use two different datastores for reading the .mat files and labels separately. Then, you can use combine on the datastores and feed to the CNN network.
Hope this helps.