Can't compile the student's code. Error: OSError('data/ex2data2.txt not found.')

When creating a post, please add:

  • Week # must be added in the tags option of the post.
  • Link to the classroom item you are referring to:
  • Description (include relevant info but please do not post solution code or your entire notebook)

When I run the below

load dataset

X_train, y_train = load_data(“data/ex2data2.txt”)

and getting the below error:

Cell #2. Can’t compile the student’s code. Error: OSError(‘data/ex2data2.txt not found.’)

I see the file ex2data2.txt is in the /data folder.

this error for week 3 lab : C1_W3_Logistic_Regression

Your screen capture image on the left doesn’t show any error message when you ran that cell.

Since your cell execution numbers are out of sync (it shows you have [26] above [3]), I recommend you restart the kernel, and then run the code in the first two notebook cells.

Then if you see an error message, please post a screen capture image showing it.

I am able to fix it

Thanks,
Kumar