trainNetwork: Cell labels with file/signal data stores
古いコメントを表示
Hi,
I have a datastore which consists of ~1000 files.
Each file is c*2 cell array, where c represents a number of events of intrest in the recorded data. The first colum of the cell array is a 9*12001 double of 9 features and the second column is a 1*1 categorical label for these events. (I will attach some sample data). This format seems to be suggested in Datastores for Deep Learning - MATLAB & Simulink - MathWorks Switzerland.
However, when I attempt to use the data to train a network in this format I get the following error;
Error using trainNetwork (line 184)
Invalid training data. For image, sequence-to-label, and feature classification tasks, responses
must be categorical.
I am asuiming this is because of the 1*1 categorical for each cell; however this is what seems to be suggested in Datastores for Deep Learning - MATLAB & Simulink - MathWorks Switzerland.
How can I get this data to read into the trainNetwork() function with either a signaldatastore() or filedatastore()?
Kind regards,
Christopher
3 件のコメント
Shivam Malviya
2023 年 1 月 10 日
Hi Christopher,
I understand you want to load data through "datastores" for training a network using the "trainNetwork" function.
Could you share the following information for a better understanding of the issue;
- The file that creates the neural network to be trained.
- The precise steps to reproduce the issue.
Regards,
Shivam Malviya
Christopher McCausland
2023 年 1 月 12 日
Shivam Malviya
2023 年 1 月 13 日
Glad to know the issue is resolved!
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Parallel and Cloud についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!