Overview

The Encoding node is a transformation node in a Weave Workflow that converts string-value columns into label-based indices, represented as vectors. It sits in the middle of a Workflow’s processing path — between source nodes (Data Import) and terminal nodes (Result, Output) — and emits the transformed data downstream.

The node applies to the columns selected in the Encoding popup. Each selected column’s values are converted to a vector form; unselected columns pass through unchanged.

Note: “Workflow” is the in-UI term for what some Weave documentation calls a pipeline. This reference uses “Workflow.”

When to use it

  • Converting categorical or string-value columns into numeric vector representations for downstream processing.
  • Preparing data that requires label-based indices rather than raw string values.
  • Encoding one or more selected columns while leaving the remaining columns unchanged.

Configuration

StepDescription
SelectOpens the Encoding popup listing the columns in the upstream data.
Select AllSelects every column in the popup.
Column checkboxesChoose the columns to encode. Unselected columns pass through unchanged.
ApplyCommits the column selection.

Output

Output elementDescription
Encoded columnsSelected columns are converted to a vector form, for example (6,[1],[1.0]).
Pass-through columnsColumns not selected retain their original values.

Key behaviors

Encoding is a transformation node. Unlike Data Import (source) and Result / Output (terminal), it sits in the middle of the Workflow, receiving data upstream, transforming the selected columns, and passing the result downstream.

Selection-scoped. Only the columns selected in the Encoding popup are encoded; all other columns pass through unchanged.

Vector output. Encoded values are emitted in vector form rather than as the original string, representing the label-based index.