Looks like week 2 Lab 1 has issues with the shape of inputs for training and test data. Getting error as mentioned below:
Epoch 1/10
774/782 [============================>.] - ETA: 0s - loss: 0.4963 - accuracy: 0.7408
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-35-f101d07e60e0> in <module>()
2
3 # Train the model
----> 4 model.fit(padded, training_labels_final, epochs=num_epochs, validation_data=(testing_padded, testing_labels_final))
1 frames
/usr/local/lib/python3.7/dist-packages/keras/engine/data_adapter.py in _check_data_cardinality(data)
1651 for i in tf.nest.flatten(single_data)))
1652 msg += "Make sure all arrays contain the same number of samples."
-> 1653 raise ValueError(msg)
1654
1655
ValueError: Data cardinality is ambiguous:
x sizes: 0
y sizes: 25000
Make sure all arrays contain the same number of samples.
The issue has been reported and opened here as well, please let me know in case I’m missing anything here?