yzhao062 / pyod

A Comprehensive and Scalable Python Library for Outlier Detection (Anomaly Detection)

Home Page:http://pyod.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

计算异常概率时会有除数为0的问题

NikoDi2000 opened this issue · comments

commented

self._sigma * np.sqrt(2))

在这一行中,有可能会有标准差为0的情况,导致出现RuntimeWarning: divide by zero encountered in true_divide。
虽然这个不太影响程序运行,但还是希望做一下处理
感谢

if self._sigma == 0, which means all the scores are equal, then maybe the problem/ algorithm already fails...