Closed Kaiyangshi-Ito closed 1 year ago
I've chosen to be explicit about failures rather than implicit. If I remember correctly version 1.1.1 introduces no changes in ISJ code, so the upgrade should not cause it.
Try:
I won't be making any changes to make these errors more "silent", since I personally prefer to be explicit when things fail. The user can always wrap the code in try..except to silence it :)
Also, do you have relatively little data? If so, that might also be the cause of it.
When ISJ bandwidth's root finding does not converge, can it return bandwidth selection using another method (e.g. Silverman) automatically just with a warning message? Or can it use some other root finding method? I think currently it uses brent method, but if the feasible set it uses doesn't contain a root, this should be the source of the problem. I encountered this problem quite often ever since upgrading to 1.1.1, though on a different data. So I'm not sure whether it's due to my data or due to change of implementation.