我使用sklearn 0.24.0和Python 3.8。
当我跑的时候,
mice = fetch_openml(name='miceprotein', version=4) 我收到这个错误消息:
RuntimeWarning: Invalid cache, redownloading file
warn("Invalid cache, redownloading file", RuntimeWarning)
---------------------------------------------------------------------------
SSLCertVerificationError Traceback (most recent call last)这是错误的最后一行:
URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1125)>我在其他数据集上也遇到了这个错误。例如,
mnist = fetch_openml('mnist_784', version=1, cache=True)有什么想法吗,发生什么事了?
发布于 2021-09-09 14:43:03
我也面临着同样的问题。用于以下解决方法。成功了!
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
X, y = datasets.fetch_openml('mnist_784', version=1, return_X_y=True)

https://stackoverflow.com/questions/66032023
复制相似问题