SplineTransformer: fitting curves without the polynomial mess
Polynomial features go wild at the edges of your data. Scikit-Learn’s SplineTransformer keeps the fit local: how to build the pipeline, tune the knot count with cross-validation, and use periodic extrapolation on cyclical features.