About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Last updated: Feb 11, 2025
The TwoStep node uses a two-step clustering method. The first step makes a
single pass through the data to compress the raw input data into a manageable set of subclusters.
The second step uses a hierarchical clustering method to progressively merge the subclusters into
larger and larger clusters. TwoStep has the advantage of automatically estimating the optimal number
of clusters for the training data. It can handle mixed field types and large data sets
efficiently.
Example
node = stream.create("twostep", "My node") node.setPropertyValue("custom_fields", True) node.setPropertyValue("inputs", ["Age", "K", "Na", "BP"]) node.setPropertyValue("partition", "Test") node.setPropertyValue("use_model_name", False) node.setPropertyValue("model_name", "TwoStep_Drug") node.setPropertyValue("use_partitioned_data", True) node.setPropertyValue("exclude_outliers", True) node.setPropertyValue("cluster_label", "String") node.setPropertyValue("label_prefix", "TwoStep_") node.setPropertyValue("cluster_num_auto", False) node.setPropertyValue("max_num_clusters", 9) node.setPropertyValue("min_num_clusters", 3) node.setPropertyValue("num_clusters", 7)
Properties |
Values | Property description |
---|---|---|
|
[field1 ... fieldN] | TwoStep models use a list of input fields, but no target. Weight and frequency fields are not recognized. See Common modeling node properties for more information. |
|
flag | |
|
flag | |
|
number | |
|
flag | |
|
number | |
|
number | |
|
number | |
|
|
|
|
string | |
|
|
|
|
|
Was the topic helpful?
0/1000