I tried using this with convoys, but the optimization would crash because of nan values. The problem is computing the derivative wrt x, where there's a fraction where both the numerator and denominator are inf so that the fraction is computed as nan.
Doing the computation in the log-domain instead resolves the issue.
I tried using this with convoys, but the optimization would crash because of
nan
values. The problem is computing the derivative wrt x, where there's a fraction where both the numerator and denominator areinf
so that the fraction is computed asnan
.Doing the computation in the log-domain instead resolves the issue.