oneHotEncoderComponent
Description
oneHotEncoderComponent is a pipeline component that encodes categorical data
into one-hot vectors. During the learn phase, the pipeline component identifies the encoded
categories. During the run phase, the pipeline component uses the functionality of the
onehotencode
function to encode new categorical data.
Creation
Description
creates a
pipeline component for encoding categorical data into one-hot vectors.component = oneHotEncoderComponent
sets writable Properties using one or more
name-value arguments. For example, component = oneHotEncoderComponent(Name=Value)
specifies to encode categorical variables with ten or fewer categories.Limit=10
Properties
Object Functions
learn | Initialize and evaluate pipeline or component |
run | Execute pipeline or component for inference after learning |
reset | Reset pipeline or component |
series | Connect components in series to create pipeline |
parallel | Connect components or pipelines in parallel to create pipeline |
view | View diagram of pipeline inputs, outputs, components, and connections |
Examples
Version History
Introduced in R2026a