Getting the error:
ValueError: Input 0 of layer repeat_vector_3 is incompatible with the layer: expected ndim=2, found ndim=3. Full shape received: [1, None, 90]
at line - x = RepeatVector(1)(x)
the dimension of x after applying argmax along the last axis is (1, None), and after one-hot encoding is (1, None, 90)
and of outputs is (None, 90). I don’t know where I’m going wrong. please help.
2 Likes
It said one-hot encoding has shape=(None, 90), which means the shape should be (None,) after argmax.
Check step 2.D, especially take the next value according to “out” by argmax
2 Likes
wow. I feel really stupid now(not that you said anything to make me feel stupid). Thanks for clearing my stupid doubt!
I modified the argument of Repeatvector but this the new error I get:
“Error in test. The lists contain a different number of elements”
Your case is different, please see the hints of Step 2.E.
Besides, you may want to check the model outputs, please see Step 3. It should be the predicted values that you created at Step 1 and stored in the loop.
1 Like