D:\ANACONDA\lib\site-packages\sklearn\datasets\_openml.py:932: FutureWarning: The default value of `parser` will change from `'liac-arff'` to `'auto'` in 1.4. You can set `parser='auto'` to silence this warning. Therefore, an `ImportError` will be raised from 1.4 if the dataset is dense and pandas is not installed. Note that the pandas parser may return different data types. See the Notes Section in fetch_openml's API doc for details.
时间: 2024-04-14 16:25:33 浏览: 277
I apologize for any confusion caused. The warning you mentioned is related to the `fetch_openml` function in scikit-learn and the default value of the `parser` parameter. The warning message indicates that starting from scikit-learn version 1.4, the default value of `parser` will change from `'liac-arff'` to `'auto'`.
To silence this warning, you can explicitly set the `parser` parameter to `'auto'` when calling the `fetch_openml` function. Here's an example:
```python
from sklearn.datasets import fetch_openml
boston = fetch_openml(data_id=531, parser='auto')
```
By setting `parser='auto'`, you will avoid the warning message.
Please note that the warning message is not related to the error you encountered previously. If you are still having trouble loading the Boston dataset, please provide the specific error message so that I can help you further.
I apologize for any inconvenience caused, and I'm here to assist you with any additional questions or concerns you may have.
阅读全文