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)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_k | No | ||
| columns | Yes | ||
| df_name | No | ||
| save_path | No | ||
| random_state | No |