elbow_plot
Determine optimal cluster count for K-Means by plotting inertia against number of clusters and locating the elbow point for best K.
Instructions
Elbow plot to find optimal number of clusters for K-Means. Plots inertia (within-cluster sum of squares) vs number of clusters. The 'elbow' point where the curve bends is the optimal K. Example: elbow_plot(columns=["Revenue","Weight"], max_k=10)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"columns": "<columns>"
},
"name": "elbow_plot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_k | No | ||
| columns | Yes | ||
| df_name | No | ||
| save_path | No | ||
| random_state | No |