Invalid validation data. For a recurrent layer with output mode 'last', responses must be a categorical column vector.
Show older comments
I am trying to train LSTM network following the example given in mathworks entitled "Classify Videos Using Deep Learning". But I am getting an error. I am attaching here the screenshot of the error.

In this screenshot the error is responses must be a categorical column vector. In my case, as you can see in the code (line no. 154) responses are named as labelsTrain. In the workspace you can see labelsTrain is categorical. I am not getting the reason behind this error and hence unable to find a way out of it. Please suggest some solution for this.
If my query is not clear, feel free to comment.
Accepted Answer
More Answers (0)
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!