ENH: ridge to help inversion stability