Hi everyone. I have some issues:
first, the autosave doesn’t work on my lab
second, I got all the desired output but after submission, I always get a Zero. and fail to pass the assignment.
what should I do?
I get this error in my submission section even when I leave all the cells blank or fill the and get the output that is expected.
Cell #9. Can’t compile the student’s code. Error: AssertionError(‘Not all tests were passed for fraction_rows_missing. Check your equations and avoid using global variables inside the function.’,)
Thank you in advance for your support.
I am not a mentor for AI4M, so I can’t address the specifics of that assignment. But a couple of general things to point out:
You can’t assume that submitting a “clean” unmodified copy of the notebook will give you 0 points from the grader and no other errors. Frequently the notebooks are set up such that there is code you need to fill in and until you do, the syntax is invalid. If there are any syntax errors in the notebook, the grader can’t even give 0 points and will throw an error like the one you are seeing.
If you actually pass the test cases in the notebook, but fail the grader, it usually means that your code is not general in some sense. Just passing one test case does not prove your code is completely correct. E.g. perhaps you reference global variables in the scope of your functions that are only present in the notebook. The other type of error is to hard-code some assumptions about the inputs, e.g. the dimensions, in a way that just happens to match the test case in the notebook.
Hello Dear Jai
I appreciate your help. I think the issue is out of my hand and the link you sent could be useful. Because I did the first week’s assignment and had no problem, but for other weeks I cannot save them and get permission error.
Hi Dear Paulin
Thank you very much for your help. I will check the code again. but for other weeks, the same is true. I thought this is a problem for week 2 of my course but I checked other weeks’ assignments and there was the same problem(‘autosave failed!’).
Ok, that’s a different problem than the more general things I was describing and one that has been afflicting quite a few students in all the courses lately. It’s because of a bug that Coursera introduced. Here’s a thread about how to cope with that which I think it equally applicable in M4ML as in the other courses, but it’s not simple to apply.
Hi Dear Paulin
I solved the issue, by making another folder (with the same name) in the root directory and renaming the previous folder and downloading all data files from the previous notebook, and uploading them to the new one.
Thank you for your time and support.
Yes, they changed the “Get Latest Version” software so that it will fix the permission problems that they created earlier, so that is the easiest workaround.