kmeansEncoderComponent
Description
kmeansEncoderComponent is a pipeline component that performs
feature extraction using k-means clustering. The pipeline component uses
the functionality of the kmeans function during the learn phase to find
clusters in the data. The component uses the functionality of the pdist2 function during the run phase to map new data to the learned
clusters.
Creation
Description
creates a pipeline component for feature extraction using k-means
clustering.component = kmeansEncoderComponent
sets writable Properties using one or more
name-value arguments. For example, component = kmeansEncoderComponent(Name=Value)NumClusters=5 specifies to extract
five clusters (transformed features).
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