我尝试在我的 Kaggle 和 google colab 笔记本中导入加州住房数据集,但出现 HTTPError。不过这段代码在我的 Jupyter 笔记本上运行良好
from sklearn.datasets import fetch_california_housing
from sklearn.model_selection import train_test_split
housing = fetch_california_housing()
我遇到了同样的问题,显然这是近十年的问题https://github.com/scikit-learn/scikit-learn/issues/10201