What is feature encoding for cyclical variables?

Updated May 16, 2026

Short answer

Cyclical encoding represents periodic features like time using sine and cosine transformations.

Deep explanation

Features like hour of day or day of week are cyclical, meaning 23 is close to 0. Linear encoding fails to capture this. Sine and cosine transformations preserve circular relationships in feature space.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Feature Engineering interview questions

View all →