Making predictions on model inputs based on observed outputs

I would also recommend using a root finder (like sp.optimize.newton) since it’s much faster; the use of a least-squares minimization was just an illustrative hack.

1 Like