C3W3E3 Error in train_model

Hi everyone,

I am getting an error that I can’t understand:



Is anyone able to help me? The code is pretty much the same as the past week assignment that worked perfectly.

Many thanks,

Diego

Hi @Diego_Quintana,

I’m going to DM you regarding this.

Mubsi

Hi @Mubsi

I’ve replied to your DM, thanks for helping!

Diego

Hi @Diego_Quintana,

Apparently, there’s nothing wrong with your implementation of Ex 3. Actually, your Ex 1 is incorrect.

While you get the All tests passed for Ex 1, but if you look, you are not matching the expected output for it:


And the reason is, your padding of X and Y is causing the issue.

If you look closely, there is a hint in the code cell comment, just above it:
# create X,Y, NumPy arrays of size (batch_size, max_len) 'full' of pad value.

Here, the word full means that you use the full function of numpy.

Hope this all helps,
Mubsi

Hi @Mubsi ,

It does work!

Many thanks,

Diego