Dataview:
list from [[]] and !outgoing([[]])๐ -> Ordinal Encoding
โ Information
A method for processing categorical data.
Ordinal means having an ordering. Smallest->Medium-> Largest.
๐ -> Methodology
- Encodes categorical data into numeric forms.
- Retains the ordinal information between categories (not true of one-hot encoding, categories have no relation to one another)
โ๏ธ -> Usage
The integers used should evenly space categories. If gaps are left, some models may incorrectly infer closeness between categories.
Ordinal encoding works well for categories with a small number of values, but can become cumbersome if many categories exist.
from sklearn.preprocessing import OrdinalEncoder
๐งช-> Example
- Define examples where it can be used
๐ -> Related Word
- Link all related words