Skip to content

DOC new example on feature engineering for cyclic time features #20281

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 42 commits into from
Jul 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
e2749fd
WIP cyclic feature engineering example
ogrisel Jun 16, 2021
4bdae4b
Fix linter
ogrisel Jun 16, 2021
ba96b4d
More linter fixes
ogrisel Jun 16, 2021
9d7c4c6
Make it a valid example with a docstring
ogrisel Jun 16, 2021
c10611c
More fixes
ogrisel Jun 16, 2021
493b6c7
Add trigonometric features + more narrative doc + headers
ogrisel Jun 17, 2021
16c8932
Improve qualitative analysis
ogrisel Jun 17, 2021
c76cad7
Average week demand plot
ogrisel Jun 17, 2021
aef31f8
spline feature refactoring + analysis of predictions
ogrisel Jun 17, 2021
08d1c02
Another round of self-review
ogrisel Jun 17, 2021
cee97b4
Visualize periodic features on synthetic data + fix bug
ogrisel Jun 17, 2021
4b3f7b4
Cosmetics: hide matplotlib text in output
ogrisel Jun 18, 2021
901e682
Apply suggestions from code review
ogrisel Jun 18, 2021
97fe13d
Add one-hot encoding + reorg
ogrisel Jun 20, 2021
020d21f
Introduce kernel models after analysing the under-fitting of linear m…
ogrisel Jun 21, 2021
63347c8
Link example from user guide
ogrisel Jun 21, 2021
d87d361
typo
ogrisel Jun 21, 2021
3e49fa5
Update phrasing to reflect the new method ordering
ogrisel Jun 21, 2021
a78dc13
Fix sphinx rendering
ogrisel Jun 21, 2021
9a35ec4
Apply suggestions from code review
ogrisel Jun 22, 2021
02f52f2
Apply suggestions from code review
ogrisel Jun 23, 2021
b739ed8
Apply suggestions from code review
ogrisel Jun 23, 2021
9caf9e7
CLN linter
lorentzenchr Jun 23, 2021
a500099
Control number of splines instead of knots
ogrisel Jun 23, 2021
022e39c
Use matplotlib's OO API
ogrisel Jun 23, 2021
46839eb
Fix n_splines to n_knots formula
ogrisel Jun 24, 2021
6e8ef54
remainder=MinMaxScaler() + report RMSE
ogrisel Jun 24, 2021
e189e86
Match legend order with order of the discussion
ogrisel Jun 24, 2021
80d5a5c
Note on (R)MSE vs MAE
ogrisel Jun 24, 2021
5d803bd
Formatting fix
ogrisel Jun 24, 2021
b7dd56d
Add analog clock scatter plot for the sine/cosine feature space
ogrisel Jun 24, 2021
e84aee5
Make degrees of freedom of each pipeline more explicit
ogrisel Jun 25, 2021
dcb65ac
Various improvements
ogrisel Jun 25, 2021
de16e81
Cosmetics
ogrisel Jul 1, 2021
c788eca
Better labels on the first plot
ogrisel Jul 16, 2021
a51a667
More compressed spline model
ogrisel Jul 18, 2021
65b84a2
Apply suggestions from code review
ogrisel Jul 18, 2021
8d066f3
Demo PolynomialFeatures for workingday/hours interactions
ogrisel Jul 18, 2021
df3800d
Expand final remarks
ogrisel Jul 18, 2021
3e069af
Use tab20b doe the splines plot
ogrisel Jul 19, 2021
26051c4
Move spline peak locations to get balanced coverage of the feature range
ogrisel Jul 19, 2021
163d29e
Apply suggestions from code review
ogrisel Jul 19, 2021
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
4 changes: 3 additions & 1 deletion doc/modules/preprocessing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,7 @@ Interestingly, a :class:`SplineTransformer` of ``degree=0`` is the same as
.. topic:: Examples:

* :ref:`sphx_glr_auto_examples_linear_model_plot_polynomial_interpolation.py`
* :ref:`sphx_glr_auto_examples_applications_plot_cyclical_feature_engineering.py`

.. topic:: References:

Expand Down Expand Up @@ -1014,4 +1015,5 @@ error with a ``filterwarnings``::

For a full code example that demonstrates using a :class:`FunctionTransformer`
to extract features from text data see
:ref:`sphx_glr_auto_examples_compose_plot_column_transformer.py`
:ref:`sphx_glr_auto_examples_compose_plot_column_transformer.py` and
:ref:`sphx_glr_auto_examples_applications_plot_cyclical_feature_engineering.py`.
Loading