Is it better to encode features like month and hour as factor or numeric in a machine learning model?
On the one hand, I feel numeric encoding might be reasonable, because month and hour aretime is a forward progressing processesprocess (the fifth month is followed by the sixth month), but on the other hand I think categorial encoding might be more reasonable because of theirthe cyclic nature of years and days ( the 12th month is followed by the first one).
Is there a general solution or convention for this?