problexity icon indicating copy to clipboard operation
problexity copied to clipboard

RuntimeWarning: invalid value encountered in divide

Open tentato opened this issue 2 years ago • 0 comments

While playing with the ComplexityCalculator(), I noticed this warning for f1 and f2 measures, which leads to a return = nan.

For f1:

C:\Users\***\AppData\Roaming\Python\Python311\site-packages\problexity\classification\feature_based.py:45: RuntimeWarning: invalid value encountered in divide
  r_all = l/m

For f2:

C:\Users\***\AppData\Roaming\Python\Python311\site-packages\problexity\classification\feature_based.py:141: RuntimeWarning: invalid value encountered in divide
  return np.product(f_overlap/f_range)

tentato avatar Apr 27 '23 21:04 tentato