def periodic_spline_transformer(period, n_splines=None, degree=3):
    if (n_splines is None):
        n_splines = period
    n_knots = (n_splines + 1)
    return SplineTransformer(degree=degree, n_knots=n_knots, knots=np.linspace(0, period, n_knots).reshape(n_knots, 1), extrapolation='periodic', include_bias=True)
def periodic_spline_transformer(period, n_splines=None, degree=3):
    if (n_splines is None):
        n_splines = period
    n_knots = (n_splines + 1)
    return SplineTransformer(degree=degree, n_knots=n_knots, knots=np.linspace(0, period, n_knots).reshape(n_knots, 1), extrapolation='periodic', include_bias=True)