Category to Number

This Node Is Deprecated — This version of the node has been replaced with a new and improved version. The old version is kept for backwards-compatibility, but for all new workflows we suggest to use the version linked below.
Go to Suggested ReplacementCategory to Number

This node takes columns with nominal data and maps every category to an integer. For your convenience, you can process multiple columns with this node. However, these columns are processed separately as if you would use a single Category To Number node for every column.

Options

Columns to transform
Select the columns to be converted from nominal (category) values to numbers. Only columns with nominal data are available. Use the include/exclude lists to specify which columns should be processed.
Append suffix to column name
If checked, append the given suffix to the names of the computed columns. Otherwise the computed columns replace the columns in the include list.
Start value
The category in the first row will be mapped to this value.
Increment
The i-th category is mapped to the value i * Increment + Start value.
Maximum number of categories
Processing is interrupted for inputs with more categories.
Use default value in PMML
This value is used when the PMML model is applied. It defines the value used when the input is not found in the mapping. If disabled, a missing cell is assigned in this case.
Map missing cells to number
Missing cells are mapped to this value. If disabled, missing cells will be mapped to missing cells.

Input Ports

Icon
Data
Icon
Optional PMML document to add the map values operations to.

Output Ports

Icon
Data with transformed columns
Icon
PMML port object that includes the performed operations.

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.