Rule Type: Clustering
The Machine Learning function provides rule type Clustering to train a clustering model based on input data. The goal of a clustering model is to find underlying structures in the input data, for example segmenting the input data into multiple clusters, where each cluster contains data points that are similar to each other with respect to observed features.
The clustering function runs a k-means algorithm on the input data to determine a partition into clusters. This function then calculates which cluster each data point belongs to. You can choose explicitly which fields (features) of the input data are to be considered by the algorithm. The model that is calculated is saved and stored under a unique model ID for each segment.
Rule Input Fields
-
Minimal Number of Cluster: Specifies the minimal number of clusters
-
Maximal Number of Cluster: Specifies the maximum number of clusters
-
Clustering Fields: Specifies the fields (features) according to which the input data is to be clustered
-
Segmented By: Specifies the fields according to which the whole input data is to be segmented. An independent clustering model is trained for each segment. This means, an independent segmentation into clusters is found. If this list is empty, then the whole input dataset is considered as one segment by default.
The model starts with a cluster number specified by Minimal Number of Clusters. It then finds the optimal number of clusters for each input data segment by iterating over different numbers of clusters within the range given by Minimal Number of Clusters and Maximal Number of Clusters while optimizing certain distance measures within each segment. If the user leaves these two input fields empty, the model will start with default number of 10 clusters.
Rule Output Fields
-
Cluster ID: The field returns the cluster to which an input data point is assigned to by a model. It is an integer by default.
-
Model: The field returns the unique ID of the trained model for each segment that is being used for predicting. It is a characteristic field type and we recommend you use a length of 30 characters.