Why is a cyclical feature like hour of day represented using sine and cosine components?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: A feature engineering question about encoding cyclical values such as hour of day, day of week or month with sine and cosine. Tests whether you can explain what goes wrong with the raw value, why two components are needed, and which models gain from the encoding.