Having Issues in Submission of W3 Programming Assignment

I just finished my W3 Programming assignment on my ML course on Coursera, But it’s Says 0% and gave this error: Cell #UNQ_C2. Can’t compile the student’s code. Error: OSError(‘data/ex2data1.txt not found.’)

And I used it on my Question 2 which Ran successful and the Output was on Point, But the grader says it can’t find it. Please I need you to help me look into it as my deadline is By Tomorrow..

Hi @Adeeyetomiwa ,

The file should be under the data folder, you can take a look by clicking the File tab on menu bar at the top of your notebook:

File → open → data

Just in case if there is a system glitch, try login to your account later, rerun your code before hitting the submit button.

Yes I have Done Checked the file tab to check for the Dataset files and the two file are there but I’ll try reopening my Practical Lab and rerun the codes too I’ll get back on that

1 Like

Your code in #UNQ_C2 probably should not be directly reading in any data file. The grader doesn’t provide access to that.

Your code should use the values that are passed to the function - not read a data file.

It’s showing this error and the Cell#17 is an uneditedable cell that was in the course lab.. How do I solve this issue

“Cell 17” is referencing the hidden script file that the grader creates for grading your work. It does not refer to your notebook. So that’s not useful information.

Somewhere in your notebook, you added code that the grader cannot use.

I recommend you delete your notebook and use the Lab Help “Get latest version” tool, and start over.

Hello @Adeeyetomiwa,

I suggest you to open the lab, then on the Jupyter’s menu, click “Kernel > Restart and Run All”. It’s likely that you will find an error message in the output of one of the code cells.

Also, it is normal that all code cells but those for the exercises are locked. Each exercise cell is followed by a test cell, and if your solution to an exercise is not correct, the error will be reported in the output of the following test cell. In this case, review the exercise and there is no need to unlock or change anything in the test cell.

Cheers,
Raymond