I am following the textbook examples. I installed Optuna ver. 3.6.1 and xgboost ver 2.0.3 in Python 3.10.
When I try to load the following form I always get the following error :
from optuna.integration.xgboost import XGBoostPruningCallback
Traceback (most recent call last):
File "C:UsersGianniPycharmProjectsoptunaXgboosErrorTestmain.py", line 1, in
from optuna.integration.xgboost import XGBoostPruningCallback
File "C:UsersGianniPycharmProjectsoptunaXgboosErrorTestvenvlibsite-packagesoptunaintegrationxgboost.py", line 1, in
from optuna_integration.xgboost import XGBoostPruningCallback
ModuleNotFoundError: No module named 'optuna_integration'
Environment
Optuna version: 3.6.1
Python version: Python 3.10
OS: Wndows 11
(Optional) Other libraries and their versions: xgboost ver 2.0.3
Example (just one line of code in main.py)
from optuna.integration.xgboost import XGBoostPruningCallback