I have submitted Week 4’s assignment several times and get 50/50 on the graded functions and 0 on history. My model needs to be above 80% accuracy to pass and it is:
Epoch 50/50
484/484 [==============================] - 4s 7ms/step - loss: 0.5638 - accuracy: 0.8482
Not sure what the issue is
Hello @Bill_Laidig ,
Welcome to the community!!
Send me your notebook via dm such that I can check where it went wrong. By clicking on the profile picture, you will see an option to message. There you can attach your notebook. Then we can discuss the issues here, under the topic you created.
With regards,
Nilosree Sengupta
Hello @Bill_Laidig ,
I have seen your code. It’s working fine.
Your accuracy is already 84%.
Just at one place, In the GRADED FUNCTION: pad_seqs
,
You need to convert the pad_sequences into an array.
I have reciprocated it on my end. t’s giving a 100% grade.
With regards,
Nilosree Sengupta
Nilosree, Thank you. This fixed my issue and I got 100%. I have a question though, I thought pad_sequence already returns a numpy array, why to I need to convert it?
Again, thanks
Bill
Hello @Bill_Laidig ,
You are welcome!
It’s because it’s given in the hint :
Returns: padded_sequences (array of int): tokenized sequences padded to the same length
With regards,
Nilosree Sengupta