Ask Your Question

Revision history [back]

To encode categorical variables using label encoding in Orange3:

  1. Open your dataset in Orange3 and select the column that contains the categorical variable you want to encode.

  2. Click on the "Encode" button in the "Data" tab of the "Attribute" widget.

  3. In the "Encoding method" dropdown, select "Label encoding".

  4. By default, Orange3 will use integers to represent the categorical values, starting from 0. If you want to use a different starting value, you can specify it in the "Start from" field.

  5. Click "Apply" to apply the label encoding to the selected attribute.

  6. You can then save the new encoded dataset by clicking on "Save data" in the "Data" tab of the "Data table" widget.