SciPy

scipy.interpolate.LSQUnivariateSpline.set_smoothing_factor

LSQUnivariateSpline.set_smoothing_factor(s)[source]

Continue spline computation with the given smoothing factor s and with the knots found at the last call.

This routine modifies the spline in place.