- The Grading process is generating exception while the actual Coursera Lab environment does not!
- There is an error in the model.fit call:
[code removed - moderator]
Please check definition of model.fit function
[code removed - moderator]
Please check definition of model.fit function
Please click my name and message your notebook as an attachment.
After submitting your notebook from my test workspace, the grader gave a new error.
Seems like the grader accounts for integer encoding of labels and not the one hot encoded version. The staff have been notified regarding this.
Hi Mikhail! Thank you for the feedback! For now, the assignments are designed not to accept modifications outside the ### START CODE HERE ###
and ### END CODE HERE ###
tags (you can find other troubleshooting tips here). We know this can be improved and we will definitely consider this in future revisions. In the meantime, kindly revert the training cell to this then revise your loss
to work with it:
model = create_model(NUM_WORDS, EMBEDDING_DIM, MAXLEN)
history = model.fit(train_padded_seq, train_label_seq, epochs=30, validation_data=(val_padded_seq, val_label_seq))
Thank you for bringing this up!