symfit
symfit copied to clipboard
RuntimeWarning when calculating R^2
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.