Dataview:

list from [[]] and !outgoing([[]])

Medium Article

๐Ÿ“— -> 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
  • Link all related words