フィルターのクリア

Classifying matrices with neural networks

1 回表示 (過去 30 日間)
Denis Svechkarev
Denis Svechkarev 2021 年 7 月 29 日
コメント済み: Denis Svechkarev 2021 年 8 月 12 日
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 Center および File ExchangeImage Data Workflows についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by