Good evening everyone, on coursera I am completing the course “Supervised Machine Learning: Regression and Classification”
In the programming task “C1_W3_Logistic_Regression” this error appears: “Cell #3. Can’t compile the student’s code. Error: OSError(‘data/ex2data1.txt not found.’)”, even though the file does exist.
has this happened to anyone? How could I solve it?
I leave the programming file attached for completeness of information.
So you did not need to insert that function separately.
Tips:
Every time you open a notebook, you must run all of the cells starting from the top. That’s where the assets are imported, and the workspace is configured.
Only add your code to the places that are marked “### START CODE HERE ###”. Do not make any other changes.
Do not add, delete, or move any cells within the notebook.
Do not rename the notebook. The grader only uses the notebook with the original file name.
There isn’t much to go wrong in sigmoid(), it’s only one line of code, and you only need to be sure you’re using the function argument in the math, not a constant value.
The most common error in the compute_gradient() function regards how your code uses indentation. That’s how Python defines blocks of code.