Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NikoDi2000 opened this issue Jun 26, 2023 · 1 comment
Open

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

NikoDi2000 opened this issue Jun 26, 2023 · 1 comment

Comments

@NikoDi2000
Copy link

self._sigma * np.sqrt(2))

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

@yzhao062
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants