I can't understand what this error message is trying to tell me.
Looking at the summary of my model, I am looking at the last few layers .
But when I fit my model, I get the this:
I don't understand. If I read this closely, Keras seems to be saying, "I looked at the labels (targets) for the validation set, and sensibly, this made me think the last layer in your model should be shaped (None, 2). But, instead of actually getting a last layer shaped (None, 2) in the model, the layer consisted of an actual array. Which was of some other shape."
This makes no sense.
I think that I suspect that this error really should say, in general, is:
"ValueError: Error when checking model target: although dense_n has shape (x, y), the shape of the target, (a,b), in incompatible."
.
Does anyone care to agree or disagree? Thanks.
(There's a similar question here, but not very helpful.)