Events
Take the Microsoft Learn Challenge
Nov 19, 11 PM - Jan 10, 11 PM
Ignite Edition - Build skills in Microsoft Azure and earn a digital badge by January 10!
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This article describes how to use the Assign Data to Clusters component in Azure Machine Learning designer. The component generates predictions through a clustering model that was trained with the K-means clustering algorithm.
The Assign Data to Clusters component returns a dataset that contains the probable assignments for each new data point.
In Azure Machine Learning designer, locate a previously trained clustering model. You can create and train a clustering model by using either of the following methods:
Configure the K-means clustering algorithm by using the K-Means Clustering component, and train the model by using a dataset and the Train Clustering Model component (this article).
You can also add an existing trained clustering model from the Saved Models group in your workspace.
Attach the trained model to the left input port of Assign Data to Clusters.
Attach a new dataset as input.
In this dataset, labels are optional. Generally, clustering is an unsupervised learning method. You are not expected to know the categories in advance. However, the input columns must be the same as the columns that were used in training the clustering model, or an error occurs.
Tip
To reduce the number of columns that are written to the designer from the cluster predictions, use Select columns in the dataset, and select a subset of the columns.
Leave the Check for append or uncheck for result only check box selected if you want the results to contain the full input dataset, including a column that displays the results (cluster assignments).
If you clear this check box, only the results are returned. This option might be useful when you create predictions as part of a web service.
Submit the pipeline.
Events
Take the Microsoft Learn Challenge
Nov 19, 11 PM - Jan 10, 11 PM
Ignite Edition - Build skills in Microsoft Azure and earn a digital badge by January 10!
Register now