Course 2 Week 2 Assignment Viterbi Backward - 3 Tests passed 1 Test failed

Hi @Mubsi,

I am also facing a similar issue in the assignment (3 tests passed and 1 failed).
Could you please take a look at my notebook?
NotebookID: zhiceqys

Thanks

1 Like

Hi @Mubsi,

I am also facing a similar issue in the assignment (3 tests passed and 1 failed).
Could you please take a look at my notebook?
NotebookID: vzgncccq

Thank you in advance!

1 Like

I’ve found a mistake. Thanks anyway!

1 Like

Hi @Mubsi, I have a similar issue. Would you please have a look? My lab code is wchaewtu. Thanks in advance!

1 Like

Hi @Mubsi,

Any updates?

I have been able to complete rest of the course but getting partial marks only for this assignment.

Thanks in advance!

1 Like

hi @Mubsi ,
Incidentally I have a similar issue, I tried truncating and shifting the range in my for loop to see if I was wrong there, turns out it still doesn’t change the error and only the last character is the error in test cases.

Can you please help me my Lab ID is - uhztzlwv

1 Like

Hi @JohnnyBoy00,

In Ex 7 your parameters for the Step 2's for loop are incorrect.

Cheers,
Mubsi

1 Like

Hi @Surya_Yadav,

Your notebook ran fine. Were you able to fix your mistake ?

Cheers,
Mubsi

1 Like

Hi @Vicky_Lu,

In Ex 7, your variables, best_prob_for_last_word and z[m - 1] were incorrect.

Best,
Mubsi

1 Like

Hi @pruthvi_reddy,

Try running your notebook now.

Best,
Mubsi

1 Like

Hi @Mubsi

Thanks for the reply.

Yes, I was able to fix the mistake in one of the loops and notebook ran without any issues.

1 Like

Hi,

As a general suggestion to anyone struggling with the viterbi_backward function:

Try to write your own pseudo-code for the function first, so that you have a good understanding of the logic before you start doing the actual coding. This can decrease the number of bugs significantly. Also, you cannot post your actual code here, but you can discuss your pseudo-code.

Hope this helps.

1 Like

Hello @Mubsi, sorry same error here. I do not know why.

my ID is fepmgwve

1 Like

Hi @oscar-defelice,

My apologise for replying this late. I was on a vacation. But I’m back now. Is this something you still need help me ? Let me know.

Thanks,
Mubsi

1 Like

Hello,
@mubsi. Thank you very much for your reply. Actually I have done!

Thanks a lot

1 Like

Hello @Mubsi ,

I am having the same issue as others. My test for Q7 is failing the same way.

image

Could you please assist me? My Lab ID is - utatqkcr

Thank You

1 Like

Hi @markwclements,

Your for loop ranges were incorrect, as well as the indexes you were using for some of states initialisations. You can see more in your notebook.

One very import thing, I noticed you had added extra code in the notebook. Keep in mind to remove anything extra you have added, like code cells, print statements, more code than what is required, before you submit it for grading. Otherwise, you’ll see grader related errors.

Cheerz,
Mubsi

1 Like

Thank you for your help!

1 Like

Hi @Mubsi I having same trouble of 3tests passed and 1 failed. Please help
My id is ncdblumn

I have found out the problem and solved it. Thank you for help.

1 Like

Hello,

I’m also having issues with the backward pass step and getting 3 tests passing with 1 failing. I tried to make modifications to the for loop but nothing seems to be working. Could anyone point me in the right direction?

1 Like