Skip to content

Instantly share code, notes, and snippets.

@erykml
Created July 28, 2022 20:28
Show Gist options
  • Save erykml/6a658f022022cfe1bf8064ecfb94703c to your computer and use it in GitHub Desktop.
Save erykml/6a658f022022cfe1bf8064ecfb94703c to your computer and use it in GitHub Desktop.
rbf = RepeatingBasisFunction(n_periods=12,
column="day_of_year",
input_range=(1,365),
remainder="drop")
rbf.fit(X)
X_3 = pd.DataFrame(index=X.index,
data=rbf.transform(X))
X_3.plot(subplots=True, figsize=(14, 8),
sharex=True, title="Radial Basis Functions",
legend=False);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment