How do I use datastores for sequence to sequence classification using the Deep Learning Toolbox?
조회 수: 1 (최근 30일)
이전 댓글 표시
I'm using the Deep Learning Toolbox to classify input signals, in a similar fashion to that shown in this example. However instead of 3 features, my data has 152, and instead of 6 observations, my data has 767. This amount of data is too large to feed directly into network training function, and I believe datastores are the solution for this. However I am having trouble working out the correct format for the data output of the datastore read function.
The MATLAB examples for read data do not seem suited to sequence-to-sequence classification. This example shows general sequence classification, but requires padding of sequences with zeros, resulting in uniform sized sequences, which doesn't seem appropriate for sequence to sequence classification.
I have tried modifying the datastore in the previous example such that its read function outputs a cell of size {batchLength,2} with the first column containing doubles in the format {numFeatures,sequenceLength} and the second column containing categoricals in the format {1,sequenceLength}. Separating this output into its consituent columns and feeding them directly into the trainNetwork function works perfectly. However, in the datastore format I get an error:
% Error using trainNetwork (line 170)
% Unexpected response size: If the network outputs sequences, then the responses must be arrays with
% feature dimension 9.
Where 9 is the number of classes.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!