Classifying matrices with neural networks

2 次查看(过去 30 天)
There is an excellent tutorial on simple NN training using images (https://www.mathworks.com/help/deeplearning/ug/create-simple-deep-learning-network-for-classification.html) - but can I do the same thing using matrices? Or does the method only support image files as the input format? If so - how can I modify it to be able to have data files (basically text files containing simple matrices (3D spectra)) as an input for the classifier? Thank you in advance for any suggestions!

回答(1 个)

Sahil Jain
Sahil Jain 2021-8-11
MATLAB provides multiple datastore classes to train neural networks on different types of data. For example, the tutorial that you mentioned uses the imageDatastoreclass for reading image data. You can go through the Getting Started With Datastore article to see if your data files fall under any of the supported formats and use the corresponding datastore class. In case your data does not fall under any the formats mentioned in the above article, you can create a custom datastore for your own data, as described in the Develop Custom Datastore article.
  1 个评论
Denis Svechkarev
Denis Svechkarev 2021-8-12
Thank you for the pointer! I took a look at the existing datastore classe, and the tabularTextDatastore looks the best for handling the data files that contain matrices (in a tabulat format). However, it appears to lack the LabelSource parameter that is necessary for automatically labeling the data based on their respective folders. How do I sort my data into different classes with this datastore class?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Deep Learning Toolbox 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by