Skip to main content
deleted 3 characters in body
Source Link
Funkwecker
  • 605
  • 1
  • 6
  • 13

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?

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 are progressing processes (the fifth month is followed by the sixth month), but on the other hand I think categorial encoding might be more reasonable because of their cyclic nature ( the 12th month is followed by the first one).

Is there a general solution or convention for this?

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 time is a forward progressing process (the fifth month is followed by the sixth month), but on the other hand I think categorial encoding might be more reasonable because of the cyclic nature of years and days ( the 12th month is followed by the first one).

Is there a general solution or convention for this?

deleted 1 character in body
Source Link
Funkwecker
  • 605
  • 1
  • 6
  • 13

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 are progressing processes (the fifth month is followed by the sixth month), but on the other hand I think categorial encoding might be more reasonable because of their cyclic nature ( the 12th month is followed by the first one).

Is there a general solution or coneventionconvention for this?

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 are progressing processes (the fifth month is followed by the sixth month), but on the other hand I think categorial encoding might be more reasonable because of their cyclic nature ( the 12th month is followed by the first one).

Is there a general solution or conevention for this?

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 are progressing processes (the fifth month is followed by the sixth month), but on the other hand I think categorial encoding might be more reasonable because of their cyclic nature ( the 12th month is followed by the first one).

Is there a general solution or convention for this?

Source Link
Funkwecker
  • 605
  • 1
  • 6
  • 13

Encoding features like month and hour as categorial or numeric?

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 are progressing processes (the fifth month is followed by the sixth month), but on the other hand I think categorial encoding might be more reasonable because of their cyclic nature ( the 12th month is followed by the first one).

Is there a general solution or conevention for this?