pyod icon indicating copy to clipboard operation
pyod copied to clipboard

Bug : Single Class label

Open arita37 opened this issue 4 years ago • 0 comments

bug with single class label.

bug in site-packages\pyod\models/base.py Line 347

bug code
                     self._classes =  len(np.unique(y)) 

 Correct code :

        if y is not None:
            check_classification_targets(y)
            self._classes = max(2, len(np.unique(y)) )
            warnings.warn(

arita37 avatar Apr 15 '21 14:04 arita37