In “Natural Language Processing with Classification and Vector Spaces” my output is same as expected output even then it is giving zero marks in week 3 assignment it is showing “There was a problem grading your submission. Check stderr for more details.” anyone know how to solve this problem ???
Please show us a screen shot of the actual grader output.
99% of the time when you pass the unit tests (and all your outputs match the expected outputs) but grading of the assignment fails, it is one of those reasons:
Important Note on Submission to the AutoGrader
Before submitting your assignment to the AutoGrader, please make sure you are not doing the following:
- You have not added any extra
- You have not added any extra code cell(s) in the assignment.
- You have not changed any of the function parameters.
- You are not using any global variables inside your graded exercises. Unless specifically instructed to do so, please refrain from it and use the local variables instead.
- You are not changing the assignment code where it is not required, like creating extra variables.
80% of these are:
- You are not using any global variables inside your graded exercises. Unless specifically instructed to do so, please refrain from it and use the local variables instead.
For example, if you have local variable named embeddings
then do not use global variable named word_embeddings
. (Here is a Video what is being meant by global vs. local variables and the playground to experiment.)
So please make sure you do not that.
Cheers
I hope this email finds you well. I am writing to seek your immediate assistance in resolving a critical issue I am facing. I have thoroughly reviewed my code multiple times, but unfortunately, I have been unable to identify the source of the problem.
I have attached a screenshot PDF to this email, which includes both my code and the output I obtained. Despite my efforts, I am unable to pinpoint the exact cause of the unexpected behavior. The output I obtained seems to match the expected output, but I suspect there might be underlying issues or potential improvements that I might have overlooked.
I kindly request your expertise and guidance to thoroughly examine the attached screenshot. I would greatly appreciate it if you could carefully review both the code and the output and provide me with your invaluable insights. Your fresh perspective and expertise in this matter will be instrumental in identifying any potential errors or improvements that may have eluded me.
I understand the demands on your time, but I genuinely value your input and believe that your assistance will significantly contribute to resolving this issue. I apologize for any inconvenience caused by this request, and I am sincerely grateful for your willingness to help.
Thank you for your prompt attention to this matter. I eagerly await your response and greatly appreciate any assistance you can provide.
{moderator edit - pdf containing solution code removed}
Your mistake is exactly the one that @arvyzukai described in the previous response on this thread: you have referenced the global variable word_embeddings
in the local scope of your function. It works in the notebook, because that is actually the global that is passed as the embeddings
parameter in that test case in the notebook. But what if the grader passes a different value? That is why it is a mistake to write the code as you did.
I wanted to take a moment to express my sincere appreciation for your assistance in resolving the problem I was facing. Thanks to your invaluable help, my issue has been successfully resolved, and I couldn’t be more grateful.
Your prompt response and willingness to lend a hand made all the difference. Your expertise and guidance were instrumental in helping me understand the problem and find a solution. I am truly amazed by your dedication and knowledge in the field.
Your assistance has not only solved my immediate problem but has also equipped me with valuable skills and insights that I will carry with me in the future.
Once again, thank you from the bottom of my heart. Your help has made a significant impact, and I am truly grateful for your kindness.
Best regards
Mohd Raqeeb Hashmi