Cyclical Encoding: An Alternative to One-Hot Encoding for Time Series Features

Cyclical encoding provides your model with the same information using significantly fewer features

Haden Pelletier
Towards Data Science
7 min readMay 3, 2024

--

When it comes to training a machine learning model for time series, more often than not you will be looking to use the following time features:

  • Hour
  • Day of week
  • Month
  • Week or day of year
  • Etc.

--

--