Skip to content

Formatting fixes in time features example #20605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions examples/applications/plot_cyclical_feature_engineering.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,10 +559,10 @@ def periodic_spline_transformer(period, n_splines=None, degree=3):
# than an hour. However, we will see in the following that what can be an
# advantage for linear models is not necessarily one for more expressive
# models.
#

# %%
# We can also compare the number of features extracted by each feature
# engineering pipeline:
# %%
naive_linear_pipeline[:-1].transform(X).shape

# %%
Expand Down Expand Up @@ -591,7 +591,7 @@ def periodic_spline_transformer(period, n_splines=None, degree=3):
# explained by the lack of non-additive modeling of the interactions between
# features (in this case "workingday" and features derived from "hours"). This
# issue will be addressed in the following section.
#

# %%
# Modeling pairwise interactions with splines and polynomial features
# -------------------------------------------------------------------
Expand Down Expand Up @@ -819,4 +819,4 @@ def periodic_spline_transformer(period, n_splines=None, degree=3):
# problems, it is likely that using a Poisson or Gamma distribution would make
# more sense. This could be achieved by using
# `GridSearchCV(TweedieRegressor(power=2), param_grid({"alpha": alphas}))`
# instead of `RidgeCV`
# instead of `RidgeCV`.