ImportError when importing xgbod
Created by: vaibhavkarve
Importing the xgbod
model is throwing an import error. I suspect this is due to sklearn removing the _joblib_parallel_args
fix from its latest version.
-
Python version = 3.10.4
-
OS = MacOS (darwin)
-
pyod version = 1.0.0
-
scikit-learn version = 1.1.0
-
Observed behavior (in the REPL) --
>>> import pyod.models.xgbod
lib/python3.10/site-packages/xgboost/compat.py:36: FutureWarning: pandas.Int64Index is deprecated and will be removed from pandas in a future version. Use pandas.Index with the appropriate dtype instead.
from pandas import MultiIndex, Int64Index
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "lib/python3.10/site-packages/pyod/models/xgbod.py", line 26, in <module>
from .iforest import IForest
File "lib/python3.10/site-packages/pyod/models/iforest.py", line 13, in <module>
from sklearn.utils.fixes import _joblib_parallel_args
ImportError: cannot import name '_joblib_parallel_args' from 'sklearn.utils.fixes' (/lib/python3.10/site-packages/sklearn/utils/fixes.py)
Expected behavior -- no error on importing the xgbod model.