“ We could simply map days of the week to numbers 1–7, but this might lead to the algorithm placing more importance on Sunday because it has a higher numerical value.”

This is true for parametric models maybe like logistic regression or even a KNN but not true for every model. Tree based models especially random forests can handle categorical data inherently and in-fact that is one of the advantages of these models.

Data Science Lead @Applied4Tech, @Google Developer Expert — Machine Learning, Author, Consultant, AI Advisor @Springboard, Connect: http://bit.ly/djs_linkedin

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store