Невозможно запустить импорт xgboost XGBRegressor [закрыто]Python

Программы на Python
Anonymous
Невозможно запустить импорт xgboost XGBRegressor [закрыто]

Сообщение Anonymous »

Когда я запускаю следующий код,

Код: Выделить всё

from xgboost import XGBRegressor
Я получаю сообщение об ошибке:

Код: Выделить всё

> --------------------------------------------------------------------------- XGBoostError                              Traceback (most recent call
> last) Cell In[64], line 19
>      17 from sklearn.metrics import mean_squared_error
>      18 from sklearn import metrics
> ---> 19 from xgboost import XGBRegressor File /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/xgboost/__init__.py:6
>       1 """XGBoost: eXtreme Gradient Boosting library.
>       2
>       3 Contributors: https://github.com/dmlc/xgboost/blob/master/CONTRIBUTORS.md
>       4 """
> ----> 6 from . import tracker  # noqa
>       7 from . import collective, dask
>       8 from .core import (
>       9     Booster,
Что я делаю не так?

Подробнее здесь: https://stackoverflow.com/questions/786 ... bregressor

Вернуться в «Python»