0

[Solved] Errors with sklearn.fetch_openml in Python Machine_Learning Neaural_Networks

When I was trying to run the code of the lesson on my PC, an error occurred indicating a ‘urllib.error.URLError’ and stating that ‘certificate verify failed’ when the program was trying to go through the function ‘fetch_openml’. I don’t know what’s wrong. Somebody plz help! Here is my code… https://code.sololearn.com/c23U26sb9zu0/?ref=app

28th Aug 2021, 5:12 PM
Wenkai Qu
Wenkai Qu - avatar
3 Respostas
29th Aug 2021, 8:47 AM
Tibor Santa
Tibor Santa - avatar
+ 1
Tibor Santa Thanks! I’ll try~
29th Aug 2021, 3:19 PM
Wenkai Qu
Wenkai Qu - avatar
+ 1
The question is solved rather MIRACULOUSLY when I removed ‘version=1’ in my code, using ‘X, y = fetch_openml(‘mnist_784’, return_X_y=True)’ instead of ‘X, y = fetch_openml(‘mnist_784’, version=1, return_X_y=True)’, but the code runs really slowly… Think I’ll just download the data from openml.org and use the .csv file directly… Thanks guys for your attention
29th Aug 2021, 5:30 PM
Wenkai Qu
Wenkai Qu - avatar