I train a neuronal network using a combined data store.
I created two separate fileDatastore objects, one for the samples and one for the labels.
Then, I used the ReadFcn to prepare the samples and to prepare the labels.
Then, I defined the RNN layers and training options and attempt to train the network.
This results in the following error:
Error using trainNetwork (line 183)
Unexpected response size: The output layer expects responses with the same sequence length and feature dimension 2.
When separately defining XTrain and YTrain from the same Datastores, I do not get this error, but this requires the training data to be in memory which I want to avoid.