{"id":11477,"date":"2020-02-03T14:48:00","date_gmt":"2020-02-03T09:18:00","guid":{"rendered":"https:\/\/www.mygreatlearning.com\/blog\/knn-algorithm-introduction\/"},"modified":"2024-09-02T15:34:36","modified_gmt":"2024-09-02T10:04:36","slug":"knn-algorithm-introduction","status":"publish","type":"post","link":"https:\/\/www.mygreatlearning.com\/blog\/knn-algorithm-introduction\/","title":{"rendered":"A Quick Introduction to KNN Algorithm"},"content":{"rendered":"\n<p>Are you venturing into <a rel=\"noreferrer noopener\" aria-label=\"machine learning (opens in a new tab)\" href=\"https:\/\/www.mygreatlearning.com\/blog\/what-is-machine-learning\/\" target=\"_blank\">machine learning<\/a>? Here is a quick introduction to the simplest <a rel=\"noreferrer noopener\" aria-label=\"machine language algorithms (opens in a new tab)\" href=\"https:\/\/www.mygreatlearning.com\/blog\/clustering-algorithms-in-machine-learning\/\" target=\"_blank\">machine language algorithms<\/a> \u2013 KNN \u2013 which will help you grasp its key dynamics.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.mygreatlearning.com\/academy\/learn-for-free\/courses\/knn\" target=\"_blank\" rel=\"noreferrer noopener\">K-Nearest Neighbors algorithm in Machine Learning <\/a>(or KNN) is one of the most used learning algorithms due to its simplicity. So what is it?<\/p>\n\n\n\n<p>KNN is a lazy learning, non-parametric algorithm. It uses data with several classes to predict the classification of the new sample point. KNN is non-parametric since it doesn\u2019t make any assumptions on the data being studied, i.e., the model is distributed from the data.&nbsp;<\/p>\n\n\n\n<p>What does it mean to say<a href=\"https:\/\/www.mygreatlearning.com\/academy\/learn-for-free\/courses\/knn\" target=\"_blank\" rel=\"noreferrer noopener\"> KNN<\/a> is a lazy algorithm? It means it doesn\u2019t use the training data points to make any generalisation. Which implies:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You expect little to no explicit training phase,<\/li>\n\n\n\n<li>The training phase is pretty fast,<\/li>\n\n\n\n<li>KNN keeps all the training data since they are needed during the testing phase.<\/li>\n<\/ul>\n\n\n\n<p>Most data does not obey the typical theoretical assumptions, like when we consider a model like linear regression, which makes KNN crucial when studying data with little or no prior knowledge.&nbsp;<\/p>\n\n\n\n<p><em>For basic machine learning algorithm, watch the following video.<\/em><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Linear Regression Algorithm | Machine Learning Tutorial | Great Learning\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/GOVaEBWE1j8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"where-knn-was-born\"><strong>Where KNN was born?<\/strong><\/h2>\n\n\n\n<p>KNN was born out of research done for the armed forces. Fix and Hodge \u2013 two officers of USAF School of Aviation Medicine \u2013 wrote a technical report in 1951 introducing the KNN algorithm.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"knn-is-a-supervised-learning-algorithm\"><strong>KNN is a Supervised Learning Algorithm&nbsp;<\/strong><\/h2>\n\n\n\n<p>A supervised machine learning algorithm is one that relies on labelled input data to learn a function that produces an appropriate output when given unlabeled data.&nbsp;<\/p>\n\n\n\n<p>In machine learning, there are two categories<\/p>\n\n\n\n<p>1.<a rel=\"noreferrer noopener\" aria-label=\" Supervised Learning (opens in a new tab)\" href=\"https:\/\/www.mygreatlearning.com\/blog\/what-is-artificial-intelligence\/\" target=\"_blank\"> Supervised Learning<\/a><\/p>\n\n\n\n<p>2. <a rel=\"noreferrer noopener\" aria-label=\"Unsupervised Learning (opens in a new tab)\" href=\"https:\/\/www.mygreatlearning.com\/blog\/deep-learning-interview-questions\/\" target=\"_blank\">Unsupervised Learning<\/a><\/p>\n\n\n\n<p>In supervised learning, you train your data on a labelled set of data and ask it to predict the label for an unlabeled point. For example, a tumour prediction model is trained on many clinical test results which are classified either positive or negative. The trained model can then predict whether an unlabeled test is positive or negative.&nbsp;&nbsp;<\/p>\n\n\n\n<p>It works just like we\u2019d do it - a teacher or a parent would teach a child new things. If a teacher wants the child to learn how an elephant looks like, he will show the child pictures of elephants, and then pictures of animals which are not elephants like zebras and monkeys.&nbsp;<\/p>\n\n\n\n<p>When we see an elephant, we shout, \u201celephant!\u201d when it\u2019s not an elephant; we shout, \u201cno, not an elephant!\u201d After the teacher does this for a while with the kid, and he shows a child a picture and asks \u201celephant?\u201d and the child will (mostly) correctly say \u201celephant!\u201d or \u201cno, not elephant!\u201d depending on the picture. That is supervised learning. When we substitute the child with a computer, it becomes supervised machine learning.&nbsp;<\/p>\n\n\n\n<p>We train it using the labelled data already available to us. In a dataset consisting of observation (x, y), we want to learn a function g: X \u2192 Y so that with X, we can use g(x) to predict corresponding output Y.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"where-to-use-knn\"><strong>Where to use KNN<\/strong><\/h2>\n\n\n\n<p>KNN can be used in both regression and classification predictive problems. However, when it comes to industrial problems, it\u2019s mostly used in classification since it fairs across all parameters evaluated when determining the usability of a technique<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Prediction Power<\/strong><\/li>\n\n\n\n<li><strong>Calculation Time<\/strong><\/li>\n\n\n\n<li><strong>Ease to Interpret the Output<\/strong><\/li>\n<\/ol>\n\n\n\n<p>KNN algorithm fairs across all parameters of considerations. But mostly, it is used due to its ease of interpretation and low calculation time.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"the-primary-step-in-machine-learning\"><strong>The primary step in Machine Learning<\/strong><\/h2>\n\n\n\n<p>KNN is very simple and is often used as a benchmark for more complex classifiers like the <a href=\"https:\/\/www.mygreatlearning.com\/blog\/introduction-to-support-vector-machine\/\">Support Vector Machines (SVM)<\/a> and the Artificial Neural Networks (ANN).\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-is-it-employed-in-daily-problems\"><strong>How is it employed in daily problems?&nbsp;<\/strong><\/h2>\n\n\n\n<p>Despite its simplicity, KNN does better than more powerful classifiers and is used in places such as genetics, data compression, and economic forecasting.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In political science \u2013 classing a political voter to \u201cvote Republican\u201d or \u201cvote Democrat\u201d, or to a \u201cwill vote\u201d or \u201cwill not vote\u201d.&nbsp;<\/li>\n\n\n\n<li>Banking system \u2013 KNN can be used to predict if a person is fit for loan approval. Or if he or she has similar traits to a defaulter.&nbsp;<\/li>\n\n\n\n<li>Calculating credit ratings \u2013 KNN can help when calculating an individual\u2019s credit score by comparing it with persons with similar traits.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>Other areas that use the KNN algorithm include <a href=\"https:\/\/www.mygreatlearning.com\/blog\/pattern-recognition-machine-learning\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Video Recognition (opens in a new tab)\">Video Recognition<\/a>, Image Recognition, Handwriting Detection, and Speech Recognition.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"companies-using-knn\"><strong>Companies Using KNN<\/strong><\/h2>\n\n\n\n<p>Companies like Amazon or Netflix use KNN when recommending books to buy or movies to watch. There was even a $1 million award on Netflix to the team that could come up with the most accurate recommendation algorithm!<\/p>\n\n\n\n<p>How do these companies make recommendations? Well, these companies gather data on the books you have read or movies you have watched on their website and apply KNN. The companies will input your available customer data and compare that to other customers who have purchased similar books or have watched similar movies.&nbsp;<\/p>\n\n\n\n<p>The books and movies recommended depending on how the algorithm classifies that data point.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-does-knn-works\"><strong>How does KNN works?<\/strong><\/h2>\n\n\n\n<p><em><strong>Contributed by: <a href=\"https:\/\/www.linkedin.com\/in\/augustine-joseph\" target=\"_blank\" rel=\"noreferrer noopener\">Augustine Joseph<\/a><\/strong><\/em><\/p>\n\n\n\n<p>The k-nearest neighbor algorithm stores all the available data and classifies a new data point based on the similarity measure (e.g., distance functions). This means when new data appears. Then it can be easily classified into a well-suited category by using K- NN algorithm.&nbsp;<\/p>\n\n\n\n<p>Suppose there are two classes, i.e., <strong>Class A<\/strong> and <strong>Class B<\/strong>, and we have a new unknown data point \u201c<strong>?<\/strong>\u201d, so this data point will lie in which of these classes. To solve this problem, we need a K-NN algorithm. With the help of K-NN, we can easily identify the class of a particular dataset. The data point is classified by a majority vote of its neighbors, with the data point being assigned to the class most common amongst its K nearest neighbors measured by a distance function.&nbsp;&nbsp;<\/p>\n\n\n\n<p>Consider the below diagram:<\/p>\n\n\n\n<p>Here, we can see that if <strong>k = 3<\/strong>, then based on the distance function used, the nearest three neighbors of the data point is found and based on the majority votes of its neighbors, the data point is classified into a class. In the case of <strong>k = 3, <\/strong>for the<strong> <\/strong>above<strong> <\/strong>diagram, it's <strong>Class B. <\/strong>Similarly, when <strong>k = 7, <\/strong>for the above diagram, based on the majority votes of its neighbors, the data point is classified to <strong>Class A<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"k-nearest-neighbors\"><strong>K-Nearest Neighbors<\/strong><\/h2>\n\n\n\n<p>KNN algorithm applies the&nbsp;<em>birds of a feather<\/em>. It assumes that similar things are near to each other; that is, they are nearby.&nbsp;<\/p>\n\n\n\n<p>KNN captures some mathematics you learned as a child as you were trying to grasp the calculation of the distance between points on a graph. The idea of similarity (sometimes called closeness, proximity, or distance).<\/p>\n\n\n\n<p>Euclidean distance or straight-line distance is a popular and familiar choice of calculating distance.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"choosing-the-right-value-for-k\"><strong>Choosing the right value for K<\/strong><\/h2>\n\n\n\n<p>To get the right K, you should run the KNN algorithm several times with different values of K and select the one that has the least number of errors.&nbsp;<\/p>\n\n\n\n<p>The right K must be able to predict data that it hasn\u2019t seen before accurately.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"things-to-guide-you-as-you-choose-the-value-of-k\"><strong>Things to guide you as you choose the value of K<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>As K approaches 1, your prediction becomes less stable.&nbsp;<\/li>\n\n\n\n<li>As your value of K increases, your prediction becomes more stable due to the majority of voters.<\/li>\n\n\n\n<li>When you start receiving an increasing number of errors, you should know you are pushing your K too far.&nbsp;<\/li>\n\n\n\n<li>Taking a majority vote among labels needs K to be an odd number to have a tiebreaker.&nbsp;<\/li>\n<\/ol>\n\n\n\n<p><em>Check out how <a href=\"https:\/\/www.mygreatlearning.com\/blog\/a-search-algorithm-in-artificial-intelligence\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"A* algorithm (opens in a new tab)\">A* algorithm<\/a> works.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"working-of-knn-algorithm-in-machine\"><strong>Working of KNN Algorithm in Machine<\/strong><\/h2>\n\n\n\n<p>To understand better the working KNN algorithm applies the following steps when using it:<\/p>\n\n\n\n<p>Step 1 \u2013 When implementing an algorithm, you will always need a data set. So, you start by loading the training and the test data.<\/p>\n\n\n\n<p>Step 2 \u2013 Choose the nearest data points (the value of K). K can be any integer.&nbsp;<\/p>\n\n\n\n<p>Step 3 \u2013 Do the following, for each test data \u2013<\/p>\n\n\n\n<p>3.1 \u2013 Use Euclidean distance, Hamming, or Manhattan to calculate the distance between test data and each row of training. The Euclidean method is the most used when calculating distance.&nbsp;<\/p>\n\n\n\n<p>3.2 \u2013 Sort data set in ascending order based on the distance value.&nbsp;<\/p>\n\n\n\n<p>3.3 \u2013 From the sorted array, choose the top K rows.<\/p>\n\n\n\n<p>3.4 \u2013 Based on the most appearing class of these rows, it will assign a class to the test point.<\/p>\n\n\n\n<p>Step 4 \u2013 End<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"some-knn-advantages-and-disadvantages\"><strong>Some KNN Advantages and Disadvantages<\/strong><\/h2>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"some-advantages-of-knn\"><strong>Some Advantages of KNN<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Quick calculation time<\/li>\n\n\n\n<li>Simple algorithm \u2013 to interpret&nbsp;<\/li>\n\n\n\n<li>Versatile \u2013 useful for regression and classification<\/li>\n\n\n\n<li>High accuracy \u2013 you do not need to compare with better-supervised learning models<\/li>\n\n\n\n<li>No assumptions about data \u2013 no need to make additional assumptions, tune several parameters, or build a model. This makes it crucial in nonlinear data case.&nbsp;<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"some-disadvantages-of-knn\"><strong>Some Disadvantages of KNN<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Accuracy depends on the quality of the data<\/li>\n\n\n\n<li>With large data, the prediction stage might be slow<\/li>\n\n\n\n<li>Sensitive to the scale of the data and irrelevant features<\/li>\n\n\n\n<li>Require high memory \u2013 need to store all of the training data<\/li>\n\n\n\n<li>Given that it stores all of the training, it can be computationally expensive<\/li>\n<\/ul>\n\n\n\n<div class=\"topics\" style=\"background:#f6f7f8\">\n\t<div class=\"site-container\">\n\t\t<h2 class=\"section-title\" class=\"section-title\" id=\"learn-more-about-ai-and-machine-learning\"> Learn more about AI and Machine Learning <\/h2>\t\n\t\t<div class=\"topic-wrapper\">\n\t\t\t\t\t\t<a class=\"card\" href=\"https:\/\/www.mygreatlearning.com\/academy\/learn-for-free\/courses\/ai-in-healthcare\" target=\"_blank\"> AI in Healthcare Free Course <\/a>\n\t\t\t\t\t\t<a class=\"card\" href=\"https:\/\/www.mygreatlearning.com\/academy\/learn-for-free\/courses\/machine-learning-with-aws\" target=\"_blank\"> Machine Learning with AWS Free Course <\/a>\n\t\t\t\t\t\t<a class=\"card\" href=\"https:\/\/www.mygreatlearning.com\/academy\/learn-for-free\/courses\/machine-learning-algorithms\" target=\"_blank\"> Machine Learning Algorithms Free Course <\/a>\n\t\t\t\t\t<\/div>\n\t<\/div>\n<\/div>\n\n\n\n\n<h2 class=\"wp-block-heading\" id=\"a-quick-summary-of-knn-algorithm\"><strong>A Quick Summary of KNN Algorithm<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>K is a positive integer<\/li>\n\n\n\n<li>With a new sample, you have to specify K<\/li>\n\n\n\n<li>K is selected from database closest to the new sample<\/li>\n\n\n\n<li>KNN doesn\u2019t learn any model&nbsp;<\/li>\n\n\n\n<li>KNN makes predictions using the similarity between an input sample and each training instance.<\/li>\n<\/ul>\n\n\n\n<p>This blog has given you the fundamentals of one of the most basic machine learning algorithms.<\/p>\n\n\n\n<p>KNN is a great place to start when first learning to build models based on different data sets.&nbsp;<\/p>\n\n\n\n<p>Data set with a lot of different points and accurate information is your best place, to begin with KNN.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"you-should-keep-these-3-points-in-mind\"><strong>You should Keep these 3 points in mind:<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A data set with lots of different points and labelled data is the ideal to use.<\/li>\n\n\n\n<li>The best languages to use with KNN are R and python.<\/li>\n\n\n\n<li>To find the most accurate results from your data set, you need to learn the correct practices for using this algorithm.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Are you venturing into machine learning? Here is a quick introduction to the simplest machine language algorithms \u2013 KNN \u2013 which will help you grasp its key dynamics. K-Nearest Neighbors algorithm in Machine Learning (or KNN) is one of the most used learning algorithms due to its simplicity. So what is it? KNN is a [&hellip;]<\/p>\n","protected":false},"author":41,"featured_media":11479,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[2],"tags":[],"content_type":[],"class_list":["post-11477","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-artificial-intelligence"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>The Introduction of KNN Algorithm | What is KNN Algorithm?<\/title>\n<meta name=\"description\" content=\"What is KNN Algorithm: K-Nearest Neighbors algorithm (or KNN) is one of the most used learning algorithms due to its simplicity. Read here many more things about KNN on mygreatlearning\/blog.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.mygreatlearning.com\/blog\/knn-algorithm-introduction\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A Quick Introduction to KNN Algorithm\" \/>\n<meta property=\"og:description\" content=\"What is KNN Algorithm: K-Nearest Neighbors algorithm (or KNN) is one of the most used learning algorithms due to its simplicity. Read here many more things about KNN on mygreatlearning\/blog.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mygreatlearning.com\/blog\/knn-algorithm-introduction\/\" \/>\n<meta property=\"og:site_name\" content=\"Great Learning Blog: Free Resources what Matters to shape your Career!\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/GreatLearningOfficial\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-03T09:18:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-02T10:04:36+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/01\/shutterstock_592921421-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"597\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Great Learning Editorial Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/Great_Learning\" \/>\n<meta name=\"twitter:site\" content=\"@Great_Learning\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Great Learning Editorial Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/knn-algorithm-introduction\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/knn-algorithm-introduction\\\/\"},\"author\":{\"name\":\"Great Learning Editorial Team\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/person\\\/6f993d1be4c584a335951e836f2656ad\"},\"headline\":\"A Quick Introduction to KNN Algorithm\",\"datePublished\":\"2020-02-03T09:18:00+00:00\",\"dateModified\":\"2024-09-02T10:04:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/knn-algorithm-introduction\\\/\"},\"wordCount\":1707,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/knn-algorithm-introduction\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/shutterstock_592921421-1.jpg\",\"articleSection\":[\"AI and Machine Learning\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/knn-algorithm-introduction\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/knn-algorithm-introduction\\\/\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/knn-algorithm-introduction\\\/\",\"name\":\"The Introduction of KNN Algorithm | What is KNN Algorithm?\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/knn-algorithm-introduction\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/knn-algorithm-introduction\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/shutterstock_592921421-1.jpg\",\"datePublished\":\"2020-02-03T09:18:00+00:00\",\"dateModified\":\"2024-09-02T10:04:36+00:00\",\"description\":\"What is KNN Algorithm: K-Nearest Neighbors algorithm (or KNN) is one of the most used learning algorithms due to its simplicity. Read here many more things about KNN on mygreatlearning\\\/blog.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/knn-algorithm-introduction\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/knn-algorithm-introduction\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/knn-algorithm-introduction\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/shutterstock_592921421-1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/shutterstock_592921421-1.jpg\",\"width\":1000,\"height\":597,\"caption\":\"KNN algorithm\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/knn-algorithm-introduction\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI and Machine Learning\",\"item\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/artificial-intelligence\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"A Quick Introduction to KNN Algorithm\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\",\"name\":\"Great Learning Blog\",\"description\":\"Learn, Upskill &amp; Career Development Guide and Resources\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\"},\"alternateName\":\"Great Learning\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\",\"name\":\"Great Learning\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/GL-Logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/GL-Logo.jpg\",\"width\":900,\"height\":900,\"caption\":\"Great Learning\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/GreatLearningOfficial\\\/\",\"https:\\\/\\\/x.com\\\/Great_Learning\",\"https:\\\/\\\/www.instagram.com\\\/greatlearningofficial\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/school\\\/great-learning\\\/\",\"https:\\\/\\\/in.pinterest.com\\\/greatlearning12\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/beaconelearning\\\/\"],\"description\":\"Great Learning is a leading global ed-tech company for professional training and higher education. It offers comprehensive, industry-relevant, hands-on learning programs across various business, technology, and interdisciplinary domains driving the digital economy. These programs are developed and offered in collaboration with the world's foremost academic institutions.\",\"email\":\"info@mygreatlearning.com\",\"legalName\":\"Great Learning Education Services Pvt. Ltd\",\"foundingDate\":\"2013-11-29\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"1001\",\"maxValue\":\"5000\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/person\\\/6f993d1be4c584a335951e836f2656ad\",\"name\":\"Great Learning Editorial Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"caption\":\"Great Learning Editorial Team\"},\"description\":\"The Great Learning Editorial Staff includes a dynamic team of subject matter experts, instructors, and education professionals who combine their deep industry knowledge with innovative teaching methods. Their mission is to provide learners with the skills and insights needed to excel in their careers, whether through upskilling, reskilling, or transitioning into new fields.\",\"sameAs\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/\",\"https:\\\/\\\/in.linkedin.com\\\/school\\\/great-learning\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/Great_Learning\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCObs0kLIrDjX2LLSybqNaEA\"],\"award\":[\"Best EdTech Company of the Year 2024\",\"Education Economictimes Outstanding Education\\\/Edtech Solution Provider of the Year 2024\",\"Leading E-learning Platform 2024\"],\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/author\\\/greatlearning\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"The Introduction of KNN Algorithm | What is KNN Algorithm?","description":"What is KNN Algorithm: K-Nearest Neighbors algorithm (or KNN) is one of the most used learning algorithms due to its simplicity. Read here many more things about KNN on mygreatlearning\/blog.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.mygreatlearning.com\/blog\/knn-algorithm-introduction\/","og_locale":"en_US","og_type":"article","og_title":"A Quick Introduction to KNN Algorithm","og_description":"What is KNN Algorithm: K-Nearest Neighbors algorithm (or KNN) is one of the most used learning algorithms due to its simplicity. Read here many more things about KNN on mygreatlearning\/blog.","og_url":"https:\/\/www.mygreatlearning.com\/blog\/knn-algorithm-introduction\/","og_site_name":"Great Learning Blog: Free Resources what Matters to shape your Career!","article_publisher":"https:\/\/www.facebook.com\/GreatLearningOfficial\/","article_published_time":"2020-02-03T09:18:00+00:00","article_modified_time":"2024-09-02T10:04:36+00:00","og_image":[{"width":1000,"height":597,"url":"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/01\/shutterstock_592921421-1.jpg","type":"image\/jpeg"}],"author":"Great Learning Editorial Team","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/Great_Learning","twitter_site":"@Great_Learning","twitter_misc":{"Written by":"Great Learning Editorial Team","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mygreatlearning.com\/blog\/knn-algorithm-introduction\/#article","isPartOf":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/knn-algorithm-introduction\/"},"author":{"name":"Great Learning Editorial Team","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/person\/6f993d1be4c584a335951e836f2656ad"},"headline":"A Quick Introduction to KNN Algorithm","datePublished":"2020-02-03T09:18:00+00:00","dateModified":"2024-09-02T10:04:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/knn-algorithm-introduction\/"},"wordCount":1707,"commentCount":0,"publisher":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/knn-algorithm-introduction\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/01\/shutterstock_592921421-1.jpg","articleSection":["AI and Machine Learning"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.mygreatlearning.com\/blog\/knn-algorithm-introduction\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.mygreatlearning.com\/blog\/knn-algorithm-introduction\/","url":"https:\/\/www.mygreatlearning.com\/blog\/knn-algorithm-introduction\/","name":"The Introduction of KNN Algorithm | What is KNN Algorithm?","isPartOf":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/knn-algorithm-introduction\/#primaryimage"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/knn-algorithm-introduction\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/01\/shutterstock_592921421-1.jpg","datePublished":"2020-02-03T09:18:00+00:00","dateModified":"2024-09-02T10:04:36+00:00","description":"What is KNN Algorithm: K-Nearest Neighbors algorithm (or KNN) is one of the most used learning algorithms due to its simplicity. Read here many more things about KNN on mygreatlearning\/blog.","breadcrumb":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/knn-algorithm-introduction\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mygreatlearning.com\/blog\/knn-algorithm-introduction\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/knn-algorithm-introduction\/#primaryimage","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/01\/shutterstock_592921421-1.jpg","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/01\/shutterstock_592921421-1.jpg","width":1000,"height":597,"caption":"KNN algorithm"},{"@type":"BreadcrumbList","@id":"https:\/\/www.mygreatlearning.com\/blog\/knn-algorithm-introduction\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/www.mygreatlearning.com\/blog\/"},{"@type":"ListItem","position":2,"name":"AI and Machine Learning","item":"https:\/\/www.mygreatlearning.com\/blog\/artificial-intelligence\/"},{"@type":"ListItem","position":3,"name":"A Quick Introduction to KNN Algorithm"}]},{"@type":"WebSite","@id":"https:\/\/www.mygreatlearning.com\/blog\/#website","url":"https:\/\/www.mygreatlearning.com\/blog\/","name":"Great Learning Blog","description":"Learn, Upskill &amp; Career Development Guide and Resources","publisher":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization"},"alternateName":"Great Learning","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mygreatlearning.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization","name":"Great Learning","url":"https:\/\/www.mygreatlearning.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/GL-Logo.jpg","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/GL-Logo.jpg","width":900,"height":900,"caption":"Great Learning"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/GreatLearningOfficial\/","https:\/\/x.com\/Great_Learning","https:\/\/www.instagram.com\/greatlearningofficial\/","https:\/\/www.linkedin.com\/school\/great-learning\/","https:\/\/in.pinterest.com\/greatlearning12\/","https:\/\/www.youtube.com\/user\/beaconelearning\/"],"description":"Great Learning is a leading global ed-tech company for professional training and higher education. It offers comprehensive, industry-relevant, hands-on learning programs across various business, technology, and interdisciplinary domains driving the digital economy. These programs are developed and offered in collaboration with the world's foremost academic institutions.","email":"info@mygreatlearning.com","legalName":"Great Learning Education Services Pvt. Ltd","foundingDate":"2013-11-29","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"1001","maxValue":"5000"}},{"@type":"Person","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/person\/6f993d1be4c584a335951e836f2656ad","name":"Great Learning Editorial Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","caption":"Great Learning Editorial Team"},"description":"The Great Learning Editorial Staff includes a dynamic team of subject matter experts, instructors, and education professionals who combine their deep industry knowledge with innovative teaching methods. Their mission is to provide learners with the skills and insights needed to excel in their careers, whether through upskilling, reskilling, or transitioning into new fields.","sameAs":["https:\/\/www.mygreatlearning.com\/","https:\/\/in.linkedin.com\/school\/great-learning\/","https:\/\/x.com\/https:\/\/twitter.com\/Great_Learning","https:\/\/www.youtube.com\/channel\/UCObs0kLIrDjX2LLSybqNaEA"],"award":["Best EdTech Company of the Year 2024","Education Economictimes Outstanding Education\/Edtech Solution Provider of the Year 2024","Leading E-learning Platform 2024"],"url":"https:\/\/www.mygreatlearning.com\/blog\/author\/greatlearning\/"}]}},"uagb_featured_image_src":{"full":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/01\/shutterstock_592921421-1.jpg",1000,597,false],"thumbnail":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/01\/shutterstock_592921421-1-150x150.jpg",150,150,true],"medium":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/01\/shutterstock_592921421-1-300x179.jpg",300,179,true],"medium_large":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/01\/shutterstock_592921421-1-768x458.jpg",768,458,true],"large":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/01\/shutterstock_592921421-1.jpg",1000,597,false],"1536x1536":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/01\/shutterstock_592921421-1.jpg",1000,597,false],"2048x2048":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/01\/shutterstock_592921421-1.jpg",1000,597,false],"web-stories-poster-portrait":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/01\/shutterstock_592921421-1.jpg",640,382,false],"web-stories-publisher-logo":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/01\/shutterstock_592921421-1.jpg",96,57,false],"web-stories-thumbnail":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/01\/shutterstock_592921421-1.jpg",150,90,false]},"uagb_author_info":{"display_name":"Great Learning Editorial Team","author_link":"https:\/\/www.mygreatlearning.com\/blog\/author\/greatlearning\/"},"uagb_comment_info":0,"uagb_excerpt":"Are you venturing into machine learning? Here is a quick introduction to the simplest machine language algorithms \u2013 KNN \u2013 which will help you grasp its key dynamics. K-Nearest Neighbors algorithm in Machine Learning (or KNN) is one of the most used learning algorithms due to its simplicity. So what is it? KNN is a&hellip;","_links":{"self":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/posts\/11477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/comments?post=11477"}],"version-history":[{"count":20,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/posts\/11477\/revisions"}],"predecessor-version":[{"id":105717,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/posts\/11477\/revisions\/105717"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/media\/11479"}],"wp:attachment":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/media?parent=11477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/categories?post=11477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/tags?post=11477"},{"taxonomy":"content_type","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/content_type?post=11477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}