In older versions, the xgb
instant could be passed with verbosity=0
and silent=True
could be passed. That worked for some.
However, I cannot get xgboost to suppress FutureWarnings.
As mentioned in the docs, I have tried this:
import xgboost as xgb
xgb.set_config(verbosity=0)
That runs with no errors.
Despite that, I get thrown several FutureWarnings.
Like this:
~/miniconda3/envs/cricket/lib/python3.11/site-packages/xgboost/data.py:312: FutureWarning: is_sparse is deprecated and will be removed in a future version. Check
isinstance(dtype, pd.SparseDtype)
instead. if is_sparse(dtype)
This has made Jupyter Notebook completely unusable to me while running a grid search. I don’t know when the search will end or at what iteration it is in. How can I get rid of all kinds of warnings including FutureWarnings?
I am using 2.0.0
with miniconda on Linux (Ubuntu).