Coursera | Sequence Models Week 3 Machine translation

Hi,
I am trying to solve the programming assignment. The code got executed but I have a problem with getting the outputs. It is showing this output which is clearly wrong.
Im unable to understand my mistake

Here’s what my output looks like for that cell:

source: 3 May 1979
output: 1979-05-33 

source: 5 April 09
output: 2009-04-05 

source: 21th of August 2016
output: 2016-08-20 

source: Tue 10 Jul 2007
output: 2007-07-10 

source: Saturday May 9 2018
output: 2018-05-09 

source: March 3 2001
output: 2001-03-03 

source: March 3rd 2001
output: 2001-03-03 

source: 1 March 2001
output: 2001-03-01

So it looks like the pattern is that your code has generated the first character correctly (the thousands digit of the year) and then it just replicates that character through the full 10 characters of the output format. You don’t even get the punctuation of the “-” characters.

Are you sure that all the tests passed for the earlier cells, which check the architecture of your model?

Yeah, I ve run all the earlier cells but it did not show any error then. Only while running the model I got a weird output.

I had the exact same issue!

Have you checked your DMs? I sent DMs to both you and to Radha about how to proceed here. You can recognize DMs in your normal feed by the little envelope icon.

Just replied to your DM!

Replied to your DM

Yes, I took a look and you both made exactly the same mistake.

I’ll file an enhancement request and suggest to the course staff that they need to generate a failure either in the notebook tests or the grader to catch that case.

1 Like