Open jonnyhof opened 5 months ago
Hi, had the same problem, solved jumping back to scikit-learn 1.3.1 which should be compatible (also 1.3.2 should work but I haven't tried yet). It should temporarly fix your issue in the meantime.
Hi @a-kole , thanks for the suggestion!
it caused by sklearn update -- the latest version 0.1.2 should fix it.
SUOD with PyOD does not function. An issue within
sklearn/base
preventsSUOD().fit()
from working.I have created several conda environments to try to resolve the sklearn compatibility issue with no luck. An environment with this issue can be created easily from a new env that only specifies PyOD and SUOD as dependencies. Here versions of Sklearn and other deps are set by conda, but I have also manually specified the versions listed in in SUOD and PyOD docs, but to no avail. The .yml file I have used in this example is (note my only hard requirement for this project is python 3.11):
To reproduce the error, all you need to do is call the suod fit method. Code to reproduce:
Note that I have tried this above code with both
pyod.models.suod.SUOD
andsuod.models.base.SUOD
with the same result.The entire resulting error trace is as follows: