least_squares_penalty module
Define a variation of LeastSquares.
It is not intended to be used with phi_s fit. Approach is here to make the
residuals grow when the constraints are not respected.
- class LeastSquaresPenalty(*args, history_kwargs=None, **kwargs)[source]
Bases:
LeastSquaresA least-squares method, with a penalty function to consider constraints.
Everything is inherited from
LeastSquares.- _abc_impl = <_abc._abc_data object at 0x7318f903f840>