In Rossman’s notebook (lesson 6), some of the columns resulting from add_datepart are treated as categorical variables. What if some categories are never seen in the training set (for example if some day of week doesn’t exist in the training set)?
I believe treating days of week for example as categorical variables is good but w’re never quite sure that all days of week figure in training set and so the solution seems to be considering them as continuous variables.
I’d like to know your take on this! Thanks!