[kNN] OSError

[kNN] OSError

by Frédéric Julien Gerber -
Number of replies: 2

Hello!

In the last part of today's assignment ("A multidimensional dataset), I am unable to execute the first code block. Even though I can manually open the link and get the data, Jupyter throws an OSError, saying that the URL "https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data" cannot be found.

Of course, I could download the corresponding file for the assignment, but is there any way to fix the code?

Best,

Frédéric

Attachment OSError.png
In reply to Frédéric Julien Gerber

Re: [kNN] OSError

by Róger Bermúdez Chacón -

I could not reproduce. Did you try downloading the file and changing the path in the code to the location in your local file system?

In reply to Róger Bermúdez Chacón

Re: [kNN] OSError

by Frédéric Julien Gerber -

Thanks for your response. Yes, that's exactly what I did to continue the assignment, but I was wondering why using a URL path didn't work. I just tried to re-run all the cells and the error message still appears. Could it be that some package import is missing (on my computer)?