`load_boston` has been removed from scikit-learn since version 1.2.
时间: 2024-01-06 13:01:23 浏览: 30
Yes, that is correct. `load_boston` is a dataset that was previously included in scikit-learn, but it has been removed since version 1.2. The reason for this removal is that the dataset is now available in the `sklearn.datasets` package of the `scikit-learn-extra` library. To use the `load_boston` dataset, you can install the `scikit-learn-extra` library and import the dataset from there. Alternatively, you can use the `fetch_openml` function from scikit-learn to download the dataset from the OpenML repository.
相关问题
load_boston` has been removed from scikit-learn since version 1.2.
Yes, that's correct. The `load_boston` dataset has been removed from scikit-learn since version 1.2. This was due to the fact that the dataset is now widely available from other sources, such as the UCI Machine Learning Repository. In addition, scikit-learn now focuses more on machine learning algorithms and tools, rather than datasets. However, users can still access the `load_boston` dataset through other means, such as loading it from the UCI repository or using other libraries.
load_boston` has been removed from scikit-learn since version 1.2如何解决
如果您需要使用`load_boston`数据集,可以尝试以下两种方法之一:
1. 降低scikit-learn的版本至1.1.x或更早的版本,这些版本中仍然包含`load_boston`数据集。
2. 直接从网络上下载Boston Housing数据集,并使用pandas或其他库将其加载到您的Python脚本中。您可以在以下链接中找到有关如何下载和加载Boston Housing数据集的更多信息:https://www.cs.toronto.edu/~delve/data/boston/bostonDetail.html
请注意,第二种方法可能需要您自己处理数据集的预处理和清理。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)