Hey team! Is there a list, enum or something where...
# mlforecast
a
Hey team! Is there a list, enum or something where I can check which
date_features
are implemented by default in mlforecast? And is there a overview about how they are treated? For instance is the
dayofweek
one-hot-encoded, ordinal, cyclic etc.?
j
Hey. We don't implement them ourselves, we extract the attributes from the datetime objects (pandas or polars), so you can see the lists here: • pandas: under the Attributes section • polars
You can also define a function that takes the datetime column and returns another column (guide) We return the attributes as integers, so if you want to one hot encode them you can use a pipeline (guide)
a
Thanks @José Morales! I am training models using LGBM, is it possible to use the build in
categorical_featuers
parameter in the library together with MLForecast?
j
The
categorical_features
argument defaults to
'auto'
, which means to treat every pandas categorical column as a categorical feature. So the easiest way would be to have those columns as categoricals. You can do that either with a scikit-learn pipeline or with custom date features