Closed stephanlachnit closed 4 years ago
Unfortunately RuntimeWarnings like that are unavoidable. It's caused by the minimizer exploring the parameter space, and probing numerically unstable regions. As shown in the example, the fit still finds the correct values though, so I don't think the word "broken" is appropriate :)
PS. I hope to be able to look at your PR soon. Maybe @tBuLi will be faster though.
Unfortunately RuntimeWarnings like that are unavoidable. It's caused by the minimizer exploring the parameter space, and probing numerically unstable regions. As shown in the example, the fit still finds the correct values though, so I don't think the word "broken" is appropriate :)
Alright, fair point, broken is maybe a bit to harsh. Maybe the example can be adjusted / changed to something that doesn't give warnings? It looks a bit weird to have errors in the official documentation, don't you think?
Maybe it's also possible to just silence the warnings with some Python environment variable. Will do some research.
I agree that if these can be polished out then that's better. They are warnings of a kind which are to be expected as @pckroon says, but I agree it would be nicer if they weren't included in the docs. Perhaps it is possible to run these notebooks with an ignore warning interpreter flag or something? For generating the docs I would have no problem with that.
While looking into what could cause the leaked build path for the documentation (see #306), I noticed that actually there is an entire example broken in the documentation. It's inside
docs/examples/ex_bivariate_likelihood.ipynb
, as you can prominently see here: https://symfit.readthedocs.io/en/master/examples/ex_bivariate_likelihood.htmlFor reference:
Edit: btw also in https://symfit.readthedocs.io/en/master/examples/ex_tikhonov.html