<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Chaitanya Reddy Patlolla on Medium]]></title>
        <description><![CDATA[Stories by Chaitanya Reddy Patlolla on Medium]]></description>
        <link>https://medium.com/@chaitanyareddypatlolla?source=rss-f874144263d7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PeDqDO6adq79GABQaioZBQ.jpeg</url>
            <title>Stories by Chaitanya Reddy Patlolla on Medium</title>
            <link>https://medium.com/@chaitanyareddypatlolla?source=rss-f874144263d7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:59:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chaitanyareddypatlolla/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Machine Learning: Getting Started With K-Nearest Neighbours.]]></title>
            <link>https://medium.datadriveninvestor.com/machine-learning-getting-started-with-k-nearest-neighbours-6851280d4c93?source=rss-f874144263d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/6851280d4c93</guid>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Chaitanya Reddy Patlolla]]></dc:creator>
            <pubDate>Thu, 13 Feb 2020 02:12:20 GMT</pubDate>
            <atom:updated>2020-02-19T13:55:10.997Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*az0eLms286TQ__19_tI-Ew.jpeg" /><figcaption>source: Google</figcaption></figure><h3>Machine Learning: Getting Started With K-Nearest Neighbor.</h3><p><strong>What we’ll learn in this article:</strong></p><ol><li>What is K-NN?</li><li>How the decision Surface change with the change in the value of K</li><li>Overfitting and Underfitting for K-NN</li><li>Types of distances used in K-NN</li><li>Space &amp; time complexity of K-NN</li><li>K-NN for regression</li><li>Applications of K-NN in real world</li></ol><p>K-Nearest Neighbors or K-NN is a basic, simple yet one of the powerful Machine Learning algorithms. K-NN can be used for both Classification and Regression. In this blog, we’ll focus mainly on the Classification part since the K-NN is majorly used for Classification.</p><p><strong>What is K-NN? What does it do? How does this algorithm work?</strong></p><p>In simple words, given a data set for classification, K-NN tries to draw a boundary surface between the classes to separate them. Now, when a query point is given to K-NN it calculates the distance between this query point and the surrounding K nearest data points and based on the majority of the class points the given query point is classified.</p><h3>Example:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*U9dOThJUekSHmdXrsSbr_A.png" /><figcaption>source: Google</figcaption></figure><p>From the above figures:</p><p><strong>Picture 1:</strong> we’ve two classes in our data which are stars and triangles. A new point is introduced in the data set and we need to classify the new data point.</p><p><strong>Picture 2: </strong>The distance between the nearest points from our new data point is calculated. The nearest points to our new data point are the neighboring data points.</p><p><strong>Picture 3:</strong> Let’s say we’ve given the K value as 3. So here the nearest three neighboring points are considered. In the three nearest neighboring points we’ve considered the majority of the points are triangles (triangles = 2 and star =1). Hence our new data point is now classified as a triangle.</p><p><strong>Simple right?? </strong>Congrats, now you’ve understood the basic functionality of the K-Nearest Neighbours.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*yL9LTNwamvdc3O2GKu0P6g.gif" /><figcaption>source: Google</figcaption></figure><p>You might have a doubt here. <strong>How do we pick the correct value of K?</strong></p><p>K here in the K-NN is a <strong><em>hyperparameter</em></strong>. Often we use an odd number as the value of K since the algorithm decides the class of the query point based on the majority. K can be 3,5,7,… but it cannot be 1. We need to be careful while choosing the value of K since it might lead to the problem of either overfitting or underfitting. K should not be too small value nor a big value.</p><p>So, <strong>what are overfitting and underfitting??</strong></p><p>Before we understand the concept of overfitting and underfitting, let’s understand the concept of decision surface.</p><p><strong>Decision Surface:</strong> It can be defined as a surface that separates the classes in a given data set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*3x2mf6gZPdAmGuHLY9zEMA.png" /><figcaption>source: Google</figcaption></figure><p>The surface which is separating the three classes in the above figure is called a decision surface or a decision boundary.</p><p>How the decision surface changes when the K value changes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EWTAwUQrimxdgRXICZYnjw.png" /><figcaption>source: Google</figcaption></figure><p><strong>K = 1</strong></p><p>As seen in the above picture, when K=1, our algorithm tries to make sure that it creates a surface that completely separates the two classes. Let’s say, we have a purple point P1 in the yellow region and when a query point is given in a yellow region and to which the nearest neighbor is P1 (Purple point which is in the yellow region) the query point is classified as the purple point, though all the points surrounding the query points are Yellow points. Since the value of K=1, we do not consider the other neighbors. Here, the query point might be misclassified.</p><p>When the K-NN algorithm creates a surface that completely separates the two classes as shown in figure 1, then it is said that it is trying to <strong>overfit</strong>.</p><p><strong>K = 5,7,15..</strong></p><p>As shown in the above figure, as the value of K increases the decision surface becomes smoother.</p><p><strong>K = n</strong></p><p>Similarly, when we have n data points in the given data set and K = n, no matter which class our query belongs to our algorithm returns the query point to be the class which has the highest number of data points. Here, this is said to be <strong>underfitting </strong>in the K-NN.</p><h3>How does the K-NN calculate the distance between two points?</h3><p>The distance in K-NN can be calculated in three ways:</p><ol><li>Euclidean Distance</li><li>Manhattan Distance</li><li>Minkowski Distance</li></ol><p><strong>Euclidean Distance (L2):</strong></p><p>Often referred to as the L2 norm of a vector is nothing but the distance of the shortest line between two data points or two vectors. The Euclidean distance between two points X1 and X2 can be calculated by the given formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K49opfj3w4b7RQt8MwbIlw.jpeg" /></figure><p>Where X1 and X2 belong to d-dimensions.</p><p><strong>Manhattan Distance (L1):</strong></p><p>Often referred to as the L1 norm of a vector. The Manhattan distance between two points X1 and X2 can be calculated by the given formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L8NQSHQcyzs8A54US4GGrQ.jpeg" /><figcaption><strong>P.S.: it is the sum of all the absolute differences between the two points in d-dimensions. |X1i-X2i|***</strong></figcaption></figure><p>Where X1 and X2 belong to d-dimensions.</p><p><strong>Minkowski Distance (LP):</strong></p><p>Often referred to as the LP norm of a vector. The Minkowski distance between two points X1 and X2 can be calculated by the given formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SgqLlsgclkNEYkSc-NlS6g.jpeg" /></figure><p>If the value of P is 2, then the Minkowski distance is the same as the Euclidean distance.</p><p>If the value of P is 1, then the Minkowski distance is the same as the Manhattan distance.</p><p>Euclidean distance is used as the default distance while implementing the K-NN algorithm.</p><p><strong>Space and Time Complexity of K-NN:</strong></p><p>The time and space complexity of the K-NN is high and is considered as one of its limitations.</p><p>Space Complexity: O(nd)</p><p>Time Complexity: O(nd)</p><p><strong>Bias &amp; Variance trade-off:</strong></p><p>If the value of K is low, the model tries to overfit.</p><p>if the value of K is high, the model tries to underfit.</p><p>This is all for the K-NN classification. Now let’s take a look at how K-NN can be implemented for regression.</p><p><strong>K-NN for Regression:</strong></p><p>As we discussed earlier, in the K-NN classification after calculating the distances between the query point and the K nearest neighbors, the algorithm classifies the query point based on the majority vote.</p><p>Similarly, in the K-NN regression, we calculate the distances between the query point and the K nearest neighbors and now instead of doing the majority vote we calculate the mean/median of all the nearest neighbors.</p><p>Note: Mean can be affected by outliers, however, the median is least affected by the outliers.</p><p><strong>Applications of K-Nearest Neighbors in real-world:</strong></p><ol><li>K-NN can be used for categorizing the text.</li><li>Stock market forecasting is one of the most core financial tasks of KNN.</li><li>recommender systems is also an area where K-NN can be applied.</li><li>K-NN also has a lot of applications in the field of medicine.</li></ol><p><strong>For more information on K-NN, you can refer to:</strong></p><ol><li><a href="https://scikit-learn.org/stable/modules/neighbors.html">https://scikit-learn.org/stable/modules/neighbors.html</a></li><li><a href="https://scikit-learn.org/stable/modules/generated/sklearn.neighbors.KNeighborsClassifier.html">https://scikit-learn.org/stable/modules/generated/sklearn.neighbors.KNeighborsClassifier.html</a></li></ol><h3>If you learned something new or enjoyed reading this article, please share it so that others will see it. Feel free to leave a comment too.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*upds9oU3Sf4AGMZCCJ6s0g.gif" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fb2a0d6%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fb2a0d6%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href">https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6851280d4c93" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/machine-learning-getting-started-with-k-nearest-neighbours-6851280d4c93">Machine Learning: Getting Started With K-Nearest Neighbours.</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding the concept of Hierarchical clustering Technique]]></title>
            <link>https://medium.com/data-science/understanding-the-concept-of-hierarchical-clustering-technique-c6e8243758ec?source=rss-f874144263d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6e8243758ec</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[unsupervised-learning]]></category>
            <category><![CDATA[clustering]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Chaitanya Reddy Patlolla]]></dc:creator>
            <pubDate>Mon, 10 Dec 2018 14:02:33 GMT</pubDate>
            <atom:updated>2020-05-29T17:21:50.064Z</atom:updated>
            <content:encoded><![CDATA[<p>The<strong> hierarchical clustering Technique </strong>is one of the popular Clustering techniques in Machine Learning<strong>. </strong>Before we try to understand the concept of the Hierarchical clustering Technique<strong> </strong>let us understand the Clustering…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*0ZuEyPVPm7cESoDm33clfA.gif" /></figure><p><strong>What is Clustering??</strong></p><p><strong>Clustering </strong>is basically a technique that groups similar data points such that the points in the same group are more similar to each other than the points in the other groups. The group of similar data points is called a <strong>Cluster.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*aZdqqvSkDcZj4SE3PK9j_Q.png" /></figure><p><strong>Differences between Clustering and Classification/Regression models:</strong></p><h4>In classification and regression models, we are given a data set(D) which contains data points(Xi) and class labels(Yi). Where, Yi’s belong to {0,1} or {0,1,2,…,n) for Classification models and Yi’s belong to real values for regression models.</h4><p>When it comes to clustering, we’re provided with a data set that contains only data points(Xi). Here we’re <strong>not</strong> provided with the class labels(Yi).</p><p>Now, let’s go to our original topic which is the <strong>Hierarchical clustering Technique.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*AmI9wRbXrfIWGESx6eEiTw.gif" /></figure><p>Here’s a small gift especially for my readers as a goodwill gesture :) Amazon Music Unlimited <strong>FREE</strong> for 3 months: <a href="https://amzn.to/2ZBlWI7"><strong>https://amzn.to/2ZBlWI7</strong></a><strong> </strong>(sign-up for support) Thanks.</p><p><strong>Hierarchical clustering Technique:</strong></p><p>Hierarchical clustering is one of the popular and easy to understand clustering technique. This clustering technique is divided into two types:</p><ol><li>Agglomerative</li><li>Divisive</li></ol><p>Click Here To Claim Yout Complimentary McDonald’s Gift Card</p><p><strong>Agglomerative Hierarchical clustering Technique: </strong>In this technique, initially each data point is considered as an individual cluster. At each iteration, the similar clusters merge with other clusters until one cluster or K clusters are formed.</p><p>The basic algorithm of Agglomerative is straight forward.</p><ul><li>Compute the proximity matrix</li><li>Let each data point be a cluster</li><li>Repeat: Merge the two closest clusters and update the proximity matrix</li><li>Until only a single cluster remains</li></ul><p>Key operation is the computation of the proximity of two clusters</p><p>To understand better let’s see a pictorial representation of the Agglomerative Hierarchical clustering Technique.<strong> </strong>Lets say we have six data points {A,B,C,D,E,F}.</p><ul><li>Step- 1: In the initial step, we calculate the proximity of individual points and consider all the six data points as individual clusters as shown in the image below.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*3pMZjFiiaaLcfSZBKDjbXA.png" /><figcaption>Agglomerative Hierarchical Clustering Technique</figcaption></figure><ul><li>Step- 2: In step two, similar clusters are merged together and formed as a single cluster. Let’s consider B,C, and D,E are similar clusters that are merged in step two. Now, we’re left with four clusters which are A, BC, DE, F.</li><li>Step- 3: We again calculate the proximity of new clusters and merge the similar clusters to form new clusters A, BC, DEF.</li><li>Step- 4: Calculate the proximity of the new clusters. The clusters DEF and BC are similar and merged together to form a new cluster. We’re now left with two clusters A, BCDEF.</li><li>Step- 5: Finally, all the clusters are merged together and form a single cluster.</li></ul><p>The Hierarchical clustering Technique can be visualized using a <strong>Dendrogram.</strong></p><p>A<strong> Dendrogram </strong>is a<strong> </strong>tree-like diagram that records the sequences of merges or splits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*JPQRbJDw2E1_HEvwzVTDDw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*fw1vlNtq2vPFmAXsBy1_dA.jpeg" /><figcaption>Dendrogram representation</figcaption></figure><p><strong>2. Divisive</strong> <strong>Hierarchical clustering Technique: </strong>Since the Divisive Hierarchical clustering Technique is not much used in the real world, I’ll give a brief of the Divisive Hierarchical clustering Technique.</p><p>In simple words, we can say that the Divisive Hierarchical clustering is exactly the opposite of the <strong>Agglomerative Hierarchical clustering. </strong>In Divisive Hierarchical clustering, we consider all the data points as a single cluster and in each iteration, we separate the data points from the cluster which are not similar. Each data point which is separated is considered as an individual cluster. In the end, we’ll be left with n clusters.</p><p>As we’re dividing the single clusters into n clusters, it is named as <strong>Divisive</strong> <strong>Hierarchical clustering.</strong></p><p>So, we’ve discussed the two types of the Hierarchical clustering Technique.</p><p>But wait!! we’re still left with the <strong>important part </strong>of<strong> </strong>Hierarchical clustering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*dpL-5neZyXbiX30zPNc5rQ.gif" /></figure><p><strong>“HOW DO WE CALCULATE THE SIMILARITY BETWEEN TWO CLUSTERS???”</strong></p><p>Calculating the similarity between two clusters is important to merge or divide the clusters. There are certain approaches which are used to calculate the similarity between two clusters:</p><ul><li>MIN</li><li>MAX</li><li>Group Average</li><li>Distance Between Centroids</li><li>Ward’s Method</li><li><strong>MIN: </strong>Also known as single-linkage algorithm can be defined as<strong> </strong>the similarity of two clusters C1 and C2 is equal to the <strong>minimum</strong> of the similarity between points Pi and Pj such that Pi belongs to C1 and Pj belongs to C2.</li></ul><p>Mathematically this can be written as,</p><p>Sim(C1,C2) = Min Sim(Pi,Pj) such that Pi ∈ C1 &amp; Pj ∈ C2</p><p>In simple words, pick the two closest points such that one point lies in cluster one and the other point lies in cluster 2 and takes their similarity and declares it as the similarity between two clusters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*mtDL2TynaiwpJlhLdecFYQ.jpeg" /></figure><p><strong>Pros of MIN:</strong></p><ul><li>This approach can separate non-elliptical shapes as long as the gap between the two clusters is not small.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*C-BNL_MDzJ6uXKgvhBy0Pg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*iQDFke1lM13R82JPG3GqNg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*dcukVWU3Ny2VhhUug5J0rg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*uNf5CCVkiwQBzjIJu4gLEg.jpeg" /><figcaption>Original data vs Clustered data using MIN approach</figcaption></figure><p><strong>Cons of MIN:</strong></p><ul><li>MIN approach cannot separate clusters properly if there is noise between clusters.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*ViZVqbai7fDLZZ4kpfXyUg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*zTG9v1NQlUYD5N6NM70wRg.jpeg" /><figcaption>Original data vs Clustered data using MIN approach</figcaption></figure><ul><li><strong>MAX: </strong>Also known as the complete linkage algorithm, this is exactly opposite to the <strong>MIN</strong> approach. The similarity of two clusters C1 and C2 is equal to the <strong>maximum</strong> of the similarity between points Pi and Pj such that Pi belongs to C1 and Pj belongs to C2.</li></ul><p>Mathematically this can be written as,</p><p>Sim(C1,C2) = Max Sim(Pi,Pj) such that Pi ∈ C1 &amp; Pj ∈ C2</p><p>In simple words, pick the two farthest points such that one point lies in cluster one and the other point lies in cluster 2 and takes their similarity and declares it as the similarity between two clusters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*nRYZyjoT1ZRzlWp3oP0_QQ.jpeg" /></figure><p><strong>Pros of MAX:</strong></p><ul><li>MAX approach does well in separating clusters if there is noise between clusters.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*xpR9pkp5Z4P7ZUBtoF-eWA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*pjGdCFuhMD_DWjxYkN8QRA.jpeg" /><figcaption>Original data vs Clustered data using MAX approach</figcaption></figure><p><strong>Cons of Max:</strong></p><ul><li>Max approach is biased towards globular clusters.</li><li>Max approach tends to break large clusters.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*hpzH_kxtv_YGzi8cSwIXzA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*itIRbzJFd4_5AUNs7G0zdw.jpeg" /><figcaption>Original data vs Clustered data using MAX approach</figcaption></figure><ul><li><strong>Group Average: </strong>Take all the pairs of points and compute their similarities and calculate the average of the similarities.</li></ul><p>Mathematically this can be written as,</p><p>sim(C1,C2) = <a href="https://en.wiktionary.org/wiki/%E2%88%91">∑</a> sim(Pi, Pj)/|C1|*|C2|</p><p>where, Pi ∈ C1 &amp; Pj ∈ C2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*CMHO0wpT8hCkR_xCQW2ggQ.jpeg" /></figure><p><strong>Pros of Group Average:</strong></p><ul><li>The group Average approach does well in separating clusters if there is noise between clusters.</li></ul><p><strong>Cons of Group Average:</strong></p><ul><li>The group Average approach is biased towards globular clusters.</li><li><strong>Distance between centroids: </strong>Compute the centroids of two clusters C1 &amp; C2 and take the similarity between the two centroids as the similarity between two clusters. This is a less popular technique in the real world.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*2AYd0CXANWsM8MLwmrJzYQ.jpeg" /></figure><ul><li><strong>Ward’s Method: </strong>This approach of calculating the similarity between two clusters is exactly the same as Group Average except that Ward’s method calculates the sum of the square of the distances Pi and PJ.</li></ul><p>Mathematically this can be written as,</p><p>sim(C1,C2) = <a href="https://en.wiktionary.org/wiki/%E2%88%91">∑</a> (dist(Pi, Pj))²/|C1|*|C2|</p><p><strong>Pros of Ward’s method:</strong></p><ul><li>Ward’s method approach also does well in separating clusters if there is noise between clusters.</li></ul><p><strong>Cons of Ward’s method:</strong></p><ul><li>Ward’s method approach is also biased towards globular clusters.</li></ul><p><strong>Space and Time Complexity of Hierarchical clustering Technique:</strong></p><p><strong>Space complexity:</strong> The space required for the Hierarchical clustering Technique is very high when the number of data points are high as we need to store the similarity matrix in the RAM. The space complexity is the order of the square of n.</p><p>Space complexity = O(n²) where n is the number of data points.</p><p><strong>Time complexity: </strong>Since we’ve to perform n iterations and in each iteration, we need to update the similarity matrix and restore the matrix, the time complexity is also very high. The time complexity is the order of the cube of n.</p><p>Time complexity = O(n³) where n is the number of data points.</p><p><strong>Limitations of</strong> <strong>Hierarchical clustering Technique:</strong></p><ol><li>There is no mathematical objective for Hierarchical clustering.</li><li>All the approaches to calculate the similarity between clusters has its own disadvantages.</li><li>High space and time complexity for Hierarchical clustering. Hence this clustering algorithm cannot be used when we have huge data.</li></ol><h4>Related article: <a href="https://bit.ly/37pQ2yy">Getting Started With K-Nearest Neighbor</a></h4><p><a href="https://medium.com/datadriveninvestor/machine-learning-getting-started-with-k-nearest-neighbours-6851280d4c93">Machine Learning: Getting Started With K-Nearest Neighbours.</a></p><p><strong>References:</strong></p><ol><li><a href="https://cs.wmich.edu/alfuqaha/summer14/cs6530/lectures/ClusteringAnalysis.pdf">https://cs.wmich.edu/alfuqaha/summer14/cs6530/lectures/ClusteringAnalysis.pdf</a></li><li><a href="http://www.appliedaicourse.com/">www.appliedaicourse.com</a></li><li><a href="https://en.wikipedia.org/wiki/Hierarchical_clustering">https://en.wikipedia.org/wiki/Hierarchical_clustering</a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*MFRoW7QCEE-z_PwNy-WRiA.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6e8243758ec" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/understanding-the-concept-of-hierarchical-clustering-technique-c6e8243758ec">Understanding the concept of Hierarchical clustering Technique</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>