如何在 google colab 等 IDE 中导入加州住房数据集

问题描述 投票:0回答:1

我尝试在我的 Kaggle 和 google colab 笔记本中导入加州住房数据集,但出现 HTTPError。不过这段代码在我的 Jupyter 笔记本上运行良好

from sklearn.datasets import fetch_california_housing
from sklearn.model_selection import train_test_split
housing = fetch_california_housing()
python python-3.x scikit-learn google-colaboratory
1个回答
0
投票

我遇到了同样的问题,显然这是近十年的问题https://github.com/scikit-learn/scikit-learn/issues/10201

© www.soinside.com 2019 - 2024. All rights reserved.