Sklearn Label Encoder icon

Sklearn Label Encoder

Encode categorical labels as integers using scikit-learn

Inverse Transform

AI-generated

Summary

Inverse transforms labels back to original strings using a fitted encoder

Inputs

  • encoderData (required) — JSON string containing the fitted encoder (from fit transform operation)
  • transformColumn (required) — Column to transform
  • outputColumn — Name for the output column. Leave empty to use original column name with suffix.
  • pythonPath — Path to Python executable with scikit-learn installed

Output shape

a list of workflow items, each containing the original fields plus a new column with the inverse‑transformed label

If outputColumn is set, the new column uses that name; otherwise the original column is replaced with a suffix '_decoded'. Returns success/failure only if an error occurs.

Examples

Example 1: Decode a previously encoded label column using a fitted encoder from an earlier node

Encoder Data = JSON from Fit Transform node; Column = category; optionally set Output Column; Python Path uses default

Example 2: Recover original string values from integer codes in a column

Provide Encoder Data, specify Column, optionally set Output Column to rename result

Example 3: Run inverse transform with a custom Python interpreter path

Set Python Path to desired executable; other parameters as above

Discussion