I am having issues with my grade on
Coursera Supervised Machine Learning: Regression and Classification learning
Week 2 practice lab: linear regression
Grading error:
My output shows for the assignment “All tests passed!” but when I submit my assignment, my grade shows 50%/ failed. Also the expected output matches my the results I get when I run the cell. I tried correcting the code (especially syntax) based on the show grader output and finally I got the expected results but somehow when I submit the assignment I get the same 50% error. Can you please help.
Passing all test cases in the notebook does not necessarily mean you will pass the grader. The grader has other test cases to check for generalization. Make sure your code handles edge cases correctly and avoids hardcoding specific values that only work for the provided test inputs. Instead, focus on writing a general solution that is explained in lab instructions.
Hope it helps! Feel free to ask if you need further assistance.
This answer didn’t help. But I figured it out. I think it’s just the Jupyter notebook or some caching is happening behind the scene that evaluates older code or not the recent one. I logged out and logged back on the following day and ran the same code that & got 100% grade.
Notebooks do not auto-save. You should use Save and Checkpoint before you submit your work for grading.
I have been using ‘save & checkpoint’ option consistently throughout all my labs and I am in that habit of saving my work… My humble feedback is someone who is new to the interface or to the course should take the course or the labs and see how they come across some of the errors that we face on regular basis, so that you’ve comparison between real time vs threads here. Hope this make sense. Thank you
Perhaps this is what you’re recommending: