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

Hi everyone, the last fails and i couldn’t find why

2 Likes

Hi @Emre_Tartan,

Can you share your lab ID with me ? In the assignment, when you click the top right “Help” button, a panel will open and your lab ID will be shown at the bottom.

I shall take a look.

When you reply back, kindly tag me in the post so that I’m notified.

Thanks,
Mubsi

1 Like

Hey @Mubsi. I’m getting a similar error. My lab id is phfkaqey

1 Like

Hi @Akshay_Gvs,

Your mistake was in Ex 7, Step 2 . Your for loop was incorrect. You can see the actual mistake inside your notebook.

Happy learning,
Mubsi

1 Like

Thank you so much! That solved the issue

1 Like

I also had the same issue…

And I went to the unit test and try to run step by step. and i found the following:

Feel the test case expected output is wrong…

But reading through the above replies, similar error was due to the for loop in step 2. But I could not figure out.

My lab is gdzedtwi. @Mubsi can you help me out?

1 Like

Hi @Joye_Lee,

You had a couple of mistakes in your Ex 7. You can take a look at them in your notebook.

Regards,
Mubsi

1 Like

Thank you Mubsi , i noticed that it was related with the update of z in Ex7 .

1 Like

@Mubsi hello, can you please help me too? my ID is tycjlawg. thank you

1 Like

Hi @sarah1444,

You were implementing pos_tag_for_word_i incorrectly in Ex 7. You can see the correct implementation in your notebook, which I have left behind.

Best,
Mubsi

1 Like

Thank you so much for the help~

1 Like

hello everyone.
i am actually having same issue (i attach a snapshot).

may i ask whether it is correct to start looping in ex7 step2 from ‘m-1’ (included) to 0 (excluded)?
after reading this chat and based on my understanding i think i might be doing something wrong with the loop.

1 Like

Hi Mubsi,
I have the same issue as one of above, not getting the starting tag. Can you please help? My lab id is: sqjxckqc

Thanks.

1 Like

Hi @Andrea_Mucchietto,

Can you share your lab ID with me ? In the assignment, when you click the top right “Help” button, a panel will open and your lab ID will be shown at the bottom.

I shall take a look.

When you reply back, kindly tag me in the post so that I’m notified.

Thanks,
Mubsi

1 Like

Hi @Xixi_NXCR,

A few of your calculations were incorrect in Ex 7.

  • your first if statement in Step 1.
  • best_prob_for_last_word
  • pred[m - 1]

For the above, you were not accounting for the correct number of words in the corpus.

  • pos_tag_for_word_i
  • pred[i - 1]

Cheers,
Mubsi

1 Like

@Mubsi
Thank you for your reply
this is my ID = ofqvnghc

1 Like

Thank you Mubsi! :green_heart: :green_heart: :green_heart:

1 Like

Hi @Andrea_Mucchietto,

Run it now.

Cheers,
Mubsi

1 Like

Hi @Mubsi
Thank you for your support.
May I please ask what was causing the issue?
BR,
AM

1 Like

Hi there, @Mubsi

I’m also having trouble with this function of the assignment (3 tests pass and 1 fails), and I’m not really sure what I’m doing wrong (since I’ve tried to follow the instructions of the assignment).

Could you please take a look at my notebook for this function?

Notebook ID: hhphxcjs

Thanks a lot! ^^

1 Like