kmeans_cluster
Partition numeric vectors into k clusters using k-means to group similar data points for analysis or segmentation.
Instructions
Partition points into k clusters using the k-means algorithm.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Number of clusters (default 3) | |
| points | Yes | Array of numeric vectors (all same dimension) | |
| max_iterations | No | Max iterations (default 100) |