symfit icon indicating copy to clipboard operation
symfit copied to clipboard

RuntimeWarning when calculating R^2

Open tBuLi opened this issue 5 years ago • 0 comments

Users are still reporting this:

/Users/pbos/sw/miniconda3/lib/python3.6/site-packages/symfit/core/fit_results.py:277: RuntimeWarning: divide by zero encountered in double_scalars
  return 1 - SS_res/SS_tot

We should probably repress this and not return R^2 at all when this happens.

tBuLi avatar Jun 20 '19 12:06 tBuLi