Trouble grade In week 3 course 1

Trouble grade In week 3 course 1

2 Likes

Many students received “There was a problem grading your submission. Check stderr for more details.” although all the testes passed. In may case, I receive this error for Test_get_country and Test get_accuracy. I appreciate if you can advise.

2 Likes

Based on my experience, if all test cases passed but there’s a problem for grading, restart the kernel and run all cells again and resubmit can solve the problem.

1 Like

Thanks for your comment, I’ve already done that but it didn’t help :frowning:

1 Like

Hi @bbayeste,

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.

Thanks,
Mubsi

1 Like

Hi Mubsi,

Thank you so much, yes, it is hmhpptwc

Actually after resubmitting for many times, now I am getting 40 which is a pass :slight_smile:

Hi @bbayeste,

I took a look at your notebook, and everything seems to be working fine. However, I noticed that in UNQ_C3 there’s an approx expected output, which in case of running your notebook I got as:

In my opinion, that’s a big difference in value, but apparently that’s what you also get when running it with official solution. I’m thinking, since this is approx value, sometimes the grader might not be satisfied with what you are getting, which is why you eventually ended up getting 40/50 after a few tries. Maybe if you try a bit more, you could get full.

I have taken a note of this and I shall pass this along to the team.

Happy learning,
Mubsi

1 Like

Thanks Mubsi, I’ve just changed that to Baghdad instead of what it used to be after I couldn’t pass the test. Originally I was getting Egypt,… and still grade of 30. Then in the text, I see it said test example with Baghdad so I gave it a try and again I got grade of 30 again. But as I mentioned submitting a couple of times gave me 40 (not 50 though). Thanks

Hi @bbayeste,

Hope you are doing well. We dug some more into this, and found out your mistake.

Firstly, my above assumption, turns out, is not valid.

Secondly, your mistake is that you are using a global variable, word_embeddings in the function get_country. We always ask the learners to avoid the use of global variables in the functions. There are several FAQs on Discourse mentioning the same. This is why everything runs smoothly in the assignment, as the global variable is declared in it, but it fails on the autograder level because it is unaware of that particular variable.

In the function get_country, word_embeddings is being passed as the parameter embeddings. Use the latter variable instead of the former.

Hope this helps. Happy learning,
Mubsi

2 Likes

Thanks sir. Here is my labID: lhenopnq

Hi @hoanghoson1209,

How can I help you ? Your notebook seems to be working fine.

Regards,
Mubsi

Thankiu sir. I know my issues and have resummited

I’m getting submission error.

Your assignment hasn’t been submitted
Something went wrong and we were unable to submit your assignment.

Hi. @Mubsi I’m also getting 30/50 when my unit tests are all passing in the notebook and outputs look correct


Lab ID = wcnsyrbd

Please advise

To add. To get ahead on troubleshooting, I just followed the Refresh your Workspace instructions from Week 1 then reentered the code. Still getting the 30/50 and grading errors.

Hi @misterneil & @rahul_jha,

Can you both 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

@Mubsi Lab ID = wcnsyrbd

Hi @misterneil,

Please make sure you are not using any global variables in any of the functions. If the issue still remains after checking, let me know.

Thanks,
Mubsi

Hi @Mubsi ,

Yes, you were correct. I fixed the variables as you already suggested in your previous reply.

Apologies for the confusion.

Neil