---
title: "Comment by Shevach Riabtsev on \"From Dendrograms to Clusters: Unpacking the Benefits of Hierarchical Clustering and K-Means\" | Hashnode"
description: "there is a typo: plt.plot(K, distortions, &#39;bx-&#39;) should be replaced with plt.plot(K, WCSS, &#39;bx-&#39;)"
url: "https://hashnode.com/posts/from-dendrograms-to-clusters-unpacking-the-benefits-of-hierarchical-clustering-and-k-means/642d08dea8899c89169675f6/comment/6438169ff22ca29c60156382"
---

[Discussion](https://hashnode.com/posts/from-dendrograms-to-clusters-unpacking-the-benefits-of-hierarchical-clustering-and-k-means/642d08dea8899c89169675f6)

Comment [From Dendrograms to Clusters: Unpacking the Benefits of Hierarchical Clustering and K-Means](https://hashnode.com/posts/from-dendrograms-to-clusters-unpacking-the-benefits-of-hierarchical-clustering-and-k-means/642d08dea8899c89169675f6)

[Shevach Riabtsev](https://hashnode.com/@shevach547)

[Apr 13, 2023](https://hashnode.com/posts/from-dendrograms-to-clusters-unpacking-the-benefits-of-hierarchical-clustering-and-k-means/642d08dea8899c89169675f6/comment/6438169ff22ca29c60156382)

there is a typo: plt.plot(K, distortions, 'bx-')

should be replaced with

plt.plot(K, WCSS, 'bx-')
