Not much to say for this one except :
- could you show an example of how to use the
categories
in the OrdinalEncoder ? - could you give us hints on when to use ordinal vs one hot encoding ?
Not much to say for this one except :
categories
in the OrdinalEncoder ?Look at https://scikit-learn.org/stable/modules/preprocessing.html#encoding-categorical-features (search for “categories=” to find the exact right place). We probably don’t want to go into more details in this notebook because the goal is to quickly build a predictive modelling pipeline and not go over all the possible variations that you can use.
I think we kind of say it a bit in the text but maybe you want more? What we say in the notebook (I think):
Hum I don’t remember seeing these examples…I might have missed them.
It’s worth checking, and maybe highlight them to make it more visible…
Agreed probably the information is a bit spread in different places maybe we need some kind of summary to highlight the take-home messages.
I am going to edit the topic title to make it a bit more about adding a short summary about one-hot vs ordinal encoding.