SciPy

scipy.interpolate.UnivariateSpline.set_smoothing_factor

UnivariateSpline.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.