Open ArtPoon opened 3 months ago
(venv) art@Wernstrom OpenRDP % python -m unittest /Users/art/git/OpenRDP/openrdp/bootscan.py:277: RuntimeWarning: divide by zero encountered in log (log_n_fact - (log_i_fact + log_ni_fact)) + np.log(p ** n) + np.log((1 - p) ** (n - i))) /Users/art/git/OpenRDP/openrdp/bootscan.py:277: RuntimeWarning: divide by zero encountered in log (log_n_fact - (log_i_fact + log_ni_fact)) + np.log(p ** n) + np.log((1 - p) ** (n - i)))
My guess is that this is an edge case where p=1 so that (1-p) ** (n-i) becomes a divide by zero error for i > n
p=1
(1-p) ** (n-i)
i > n
Seems like this is a stochastic error, which will be more difficult to diagnose...
See also #93