Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove
nan_to_num
and nan_to_high
from find_MAP
.
These functions appear to have been added due to poor handling of NaN in `scipy.optimize.minimize` for pre-1.4 versions of `scipy`. The most commonly used SciPy optimizers, including 'L-BFGS-B', were updated to handle this years ago, and it appears that these limiters are now actively harmful, since they produce extra discontinuities in the function and Jacobian passed to `minimize`.
- Loading branch information