1

我开始知道fetch_mldata()不再起作用了。fetch_mldata( ) 已死,因为它依赖于已死的网站。我将其替换为fetch_openml(),它依赖于https://openml.org

import numpy as np
from sklearn.datasets import fetch_openml

mnist = fetch_openml('mnist_784', version=1, cache=True)
mnist.target = mnist.target.astype(np.int8) # fetch_openml() returns targets as strings
print(mnist)

但我面临以下错误:

OpenMLError: Dataset mnist_784 with version 1 not found.

有没有人有办法解决吗?提前致谢。

4

0 回答 0