{"id":4815,"date":"2020-02-15T11:36:10","date_gmt":"2020-02-15T11:36:10","guid":{"rendered":"https:\/\/prwatech.in\/blog\/?p=4815"},"modified":"2024-03-15T12:04:45","modified_gmt":"2024-03-15T12:04:45","slug":"k-means-clustering-in-machine-learning","status":"publish","type":"post","link":"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/k-means-clustering-in-machine-learning\/","title":{"rendered":"K Means Clustering in Machine Learning"},"content":{"rendered":"<p>&nbsp;<\/p>\n<h1>K Means Clustering in Machine Learning<\/h1>\n<p>&nbsp;<\/p>\n<p><strong>K Means Clustering in Machine Learning<\/strong>, in this Tutorial one can learn k-means clustering introduction. Are you the one who is looking for the best platform which provides information about k means clustering algorithm steps,advantages of k means clustering algorithm, k means clustering algorithm example? Or the one who is looking forward to taking the advanced <a href=\"https:\/\/prwatech.in\/data-science-certification-course-in-bangalore\/\">Data Science Certification Course<\/a> with Machine Learning from India\u2019s Leading <a href=\"https:\/\/prwatech.in\/data-science-training-institutes-in-bangalore\/\">Data Science Training institute<\/a>? Then you\u2019ve landed on the Right Path.<\/p>\n<p>&nbsp;<\/p>\n<p>K-means clustering is one among the best and popular unsupervised machine learning algorithms. during this blog, we are going to understand the K-Means clustering algorithm with the assistance of examples.Before aiming to K-means Clustering, allow us to first understand what Clustering is.Clustering helps to group similar data points together while these groups are significantly different from one another. K-means clustering is one among the best and popular unsupervised machine learning algorithms.<\/p>\n<p>&nbsp;<\/p>\n<p>The Below mentioned Tutorial will help to Understand the detailed information about k means clustering in machine learning, so Just follow all the tutorials of India\u2019s Leading <a href=\"https:\/\/prwatech.in\/data-science-training-institutes-in-bangalore\/\">Best Data Science Training institute in Bangalore<\/a> and Be a Pro <a href=\"https:\/\/prwatech.in\/data-science-certification-course-in-bangalore\/\">Data Scientist<\/a> or Machine Learning Engineer.<\/p>\n<p>&nbsp;<\/p>\n<h2>K Means Clustering Introduction<\/h2>\n<p>&nbsp;<\/p>\n<p>Unsupervised algorithms read datasets using input vectors only, without denoting known or labeled outputs. Means there is no any clear identification of any label or category. One of the most popular unsupervised machine algorithms is <strong>K Means Clustering<\/strong>. It can be stated as task of identifying different groups in given unstructured data having similar data points. The meaning of cluster is nothing but subgroups of data points. Clustering assists us to understand our data by grouping things together into clusters.<\/p>\n<p>&nbsp;<\/p>\n<p>While dividing data into different clusters it is necessary to understand properties of clusters. All the data points in single cluster should be alike to each other. Also, the data points from different clusters should be as dissimilar as possible.<\/p>\n<p>&nbsp;<\/p>\n<p>Some real time examples of using this type of machine learning algorithm are, Identifying Fake News, Spam filter, Marketing and Sales, Classifying network traffic, Identifying fraudulent or criminal activity, document analysis, recommendation engines etc.<\/p>\n<p>&nbsp;<\/p>\n<h2>K Means Clustering Algorithm Steps<\/h2>\n<p>&nbsp;<\/p>\n<p>The algorithm works in following manner:<\/p>\n<p>&nbsp;<\/p>\n<h3>Step 1: Choosing the number of clusters\u00a0<em>k:<\/em><\/h3>\n<p>&nbsp;<\/p>\n<p>Initialize k points, which are nothing but means of clusters.The entity \u2018k\u2019 is called means, because they are the mean values of the data points categorized in it indirectly, we are choosing number of clusters. For example, let\u2019s choose 2 clusters, so k is equal to 2<\/p>\n<p>&nbsp;<\/p>\n<h3>Step 2: Selecting k random points as centroids from data set:<\/h3>\n<p>&nbsp;<\/p>\n<p>Here we have to select the mean or centroid for each cluster randomly. Let\u2019s select centroid or means randomly.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4816\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmean1.png\" alt=\"K Means Clustering Algorithm Steps\" width=\"850\" height=\"300\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmean1.png 447w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmean1-300x106.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Step 3: Grouping all the points nearest to mean or centroid<\/h3>\n<p>&nbsp;<\/p>\n<p>Categorize each data point to its nearest mean.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4817\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmean2.png\" alt=\"K Means Clustering Algorithm Steps\" width=\"850\" height=\"369\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmean2.png 424w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmean2-300x130.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Step 4: Recompute the means of new clusters<\/h3>\n<p>&nbsp;<\/p>\n<p>Here we have to update the mean\u2019s coordinates, which are the averages of the data points categorized in that group.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4818\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmean3.png\" alt=\"K Means Clustering Algorithm Steps\" width=\"850\" height=\"327\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmean3.png 504w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmean3-300x115.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<h3>Step 5: Repeat steps 3 and 4<\/h3>\n<p>&nbsp;<\/p>\n<p>Repeat the process till means will not be changed longer i.e. iterations to be done till we get next means same as previous. Then we get final clusters.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4819\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmean4.png\" alt=\"K Means Clustering Algorithm Steps\" width=\"850\" height=\"355\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmean4.png 424w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmean4-300x125.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>What should be the \u2018K\u2019 value that will depend on the data set and the problem which we are going to solve.<\/p>\n<p>&nbsp;<\/p>\n<h2>Advantages of K Means Clustering Algorithm<\/h2>\n<p>&nbsp;<\/p>\n<p>Some advantages of K-Means clustering method are:<\/p>\n<p>&nbsp;<\/p>\n<p>It is easy to implement<\/p>\n<p>Comparatively speedy and efficient<\/p>\n<p>It has only single parameter to vary and the direct impact of adjusting the value of parameter K can be observed easily.<\/p>\n<p>&nbsp;<\/p>\n<h2>K Means Clustering Algorithm Example<\/h2>\n<p>&nbsp;<\/p>\n<p>Now let\u2019 see example of K Mean Clustering using Python<\/p>\n<p>&nbsp;<\/p>\n<h3>Initializing and importing libraries<\/h3>\n<p>&nbsp;<\/p>\n<p>import numpy as np<\/p>\n<p>import pandas as pd<\/p>\n<p>%matplotlib inline<\/p>\n<p>import matplotlib.pyplot as plt<\/p>\n<p>import seaborn as sns; sns.set()<\/p>\n<p>&nbsp;<\/p>\n<h3>Generating set of data points with make_blob<\/h3>\n<p>&nbsp;<\/p>\n<p>from sklearn.datasets.samples_generator import make_blobs<\/p>\n<p>X, y = make_blobs(n_samples=500, centers=3,cluster_std=0.50, random_state=0)<\/p>\n<p>plt.scatter(X[:, 0], X[:, 1], s=40)<\/p>\n<p>&nbsp;<\/p>\n<p><strong>It will show scatter plot as<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4820\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmean5.png\" alt=\"K Means Clustering Algorithm Example\" width=\"850\" height=\"577\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmean5.png 374w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmean5-300x204.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Applying K Means to dataset<\/h3>\n<p>&nbsp;<\/p>\n<p>from sklearn.cluster import KMeans<\/p>\n<p>kmeans = KMeans(n_clusters=6)\u00a0 # We can change n_cluster number asper need<\/p>\n<p>kmeans.fit(X)<\/p>\n<p>y_kmeans = kmeans.predict(X)<\/p>\n<p>&nbsp;<\/p>\n<h3>Let\u2019s code for visualization for this clustering<\/h3>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4821\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmean6.png\" alt=\"K Means Clustering Algorithm Example\" width=\"850\" height=\"571\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmean6.png 375w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmean6-300x202.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>plt.scatter(X[:, 0], X[:, 1], c=y_kmeans, s=50, cmap=&#8217;viridis&#8217;)<\/p>\n<p>cent = kmeans.cluster_centers_<\/p>\n<p>plt.scatter(cent [:, 0], centers[:, 1], c=&#8217;red&#8217;, s=200, alpha=0.5);<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>We hope you understand random forest tutorial for beginners.Get success in your career as a Data Scientist by being a part of the <a href=\"https:\/\/prwatech.com\/\">Prwatech<\/a>, India&#8217;s leading <a href=\"https:\/\/prwatech.in\/data-science-training-institutes-in-bangalore\/\">Data Science training institute in Bangalore<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/EGbyBqFlTcQ\" width=\"850\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; K Means Clustering in Machine Learning &nbsp; K Means Clustering in Machine Learning, in this Tutorial one can learn k-means clustering introduction. Are you the one who is looking for the best platform which provides information about k means clustering algorithm steps,advantages of k means clustering algorithm, k means clustering algorithm example? Or the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4823,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32,1696],"tags":[456,457,455,453,454,1758],"class_list":["post-4815","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-machine-learning","category-machine-learning-modules","tag-advantages-of-k-means-clustering-algorithm","tag-k-means-clustering-algorithm-example","tag-k-means-clustering-algorithm-steps","tag-k-means-clustering-in-machine-learning","tag-k-means-clustering-introduction","tag-k-means-clustering-algorithm-for-beginners"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>K-Means Clustering Tutorial: Step-by-Step Guide - Prwatech<\/title>\n<meta name=\"description\" content=\"Explore K Means Clustering in Machine Learning concepts &amp; Learn k-means clustering introduction, k means clustering algorithm steps.\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"K-Means Clustering Tutorial: Step-by-Step Guide - Prwatech\" \/>\n<meta property=\"og:description\" content=\"Explore K Means Clustering in Machine Learning concepts &amp; Learn k-means clustering introduction, k means clustering algorithm steps.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/k-means-clustering-in-machine-learning\/\" \/>\n<meta property=\"og:site_name\" content=\"Prwatech\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prwatech.in\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-15T11:36:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-15T12:04:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmeanmain.png\" \/>\n\t<meta property=\"og:image:width\" content=\"760\" \/>\n\t<meta property=\"og:image:height\" content=\"506\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Prwatech\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:site\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prwatech\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/k-means-clustering-in-machine-learning\/\",\"url\":\"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/k-means-clustering-in-machine-learning\/\",\"name\":\"K-Means Clustering Tutorial: Step-by-Step Guide - Prwatech\",\"isPartOf\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/k-means-clustering-in-machine-learning\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/k-means-clustering-in-machine-learning\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmeanmain.png\",\"datePublished\":\"2020-02-15T11:36:10+00:00\",\"dateModified\":\"2024-03-15T12:04:45+00:00\",\"author\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\"},\"description\":\"Explore K Means Clustering in Machine Learning concepts & Learn k-means clustering introduction, k means clustering algorithm steps.\",\"breadcrumb\":{\"@id\":\"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/k-means-clustering-in-machine-learning\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/k-means-clustering-in-machine-learning\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/k-means-clustering-in-machine-learning\/#primaryimage\",\"url\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmeanmain.png\",\"contentUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmeanmain.png\",\"width\":760,\"height\":506},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/k-means-clustering-in-machine-learning\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/prwatech.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"K Means Clustering in Machine Learning\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/prwatech.in\/blog\/#website\",\"url\":\"https:\/\/prwatech.in\/blog\/\",\"name\":\"Prwatech\",\"description\":\"Share Ideas, Start Something Good.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/prwatech.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\",\"name\":\"Prwatech\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"caption\":\"Prwatech\"},\"url\":\"https:\/\/prwatech.in\/blog\/author\/prwatech123\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"K-Means Clustering Tutorial: Step-by-Step Guide - Prwatech","description":"Explore K Means Clustering in Machine Learning concepts & Learn k-means clustering introduction, k means clustering algorithm steps.","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"K-Means Clustering Tutorial: Step-by-Step Guide - Prwatech","og_description":"Explore K Means Clustering in Machine Learning concepts & Learn k-means clustering introduction, k means clustering algorithm steps.","og_url":"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/k-means-clustering-in-machine-learning\/","og_site_name":"Prwatech","article_publisher":"https:\/\/www.facebook.com\/prwatech.in\/","article_published_time":"2020-02-15T11:36:10+00:00","article_modified_time":"2024-03-15T12:04:45+00:00","og_image":[{"width":760,"height":506,"url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmeanmain.png","type":"image\/png"}],"author":"Prwatech","twitter_card":"summary_large_image","twitter_creator":"@Eduprwatech","twitter_site":"@Eduprwatech","twitter_misc":{"Written by":"Prwatech","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/k-means-clustering-in-machine-learning\/","url":"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/k-means-clustering-in-machine-learning\/","name":"K-Means Clustering Tutorial: Step-by-Step Guide - Prwatech","isPartOf":{"@id":"https:\/\/prwatech.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/k-means-clustering-in-machine-learning\/#primaryimage"},"image":{"@id":"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/k-means-clustering-in-machine-learning\/#primaryimage"},"thumbnailUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmeanmain.png","datePublished":"2020-02-15T11:36:10+00:00","dateModified":"2024-03-15T12:04:45+00:00","author":{"@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3"},"description":"Explore K Means Clustering in Machine Learning concepts & Learn k-means clustering introduction, k means clustering algorithm steps.","breadcrumb":{"@id":"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/k-means-clustering-in-machine-learning\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/k-means-clustering-in-machine-learning\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/k-means-clustering-in-machine-learning\/#primaryimage","url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmeanmain.png","contentUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2020\/02\/kmeanmain.png","width":760,"height":506},{"@type":"BreadcrumbList","@id":"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/k-means-clustering-in-machine-learning\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/prwatech.in\/blog\/"},{"@type":"ListItem","position":2,"name":"K Means Clustering in Machine Learning"}]},{"@type":"WebSite","@id":"https:\/\/prwatech.in\/blog\/#website","url":"https:\/\/prwatech.in\/blog\/","name":"Prwatech","description":"Share Ideas, Start Something Good.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/prwatech.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3","name":"Prwatech","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","caption":"Prwatech"},"url":"https:\/\/prwatech.in\/blog\/author\/prwatech123\/"}]}},"_links":{"self":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/4815","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/comments?post=4815"}],"version-history":[{"count":10,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/4815\/revisions"}],"predecessor-version":[{"id":4946,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/4815\/revisions\/4946"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media\/4823"}],"wp:attachment":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media?parent=4815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/categories?post=4815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/tags?post=4815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}