{"term":{"id":"10131","title":"<em>k<\/em>-nearest neighbour","longtitle":"IUPAC Gold Book - <em>k<\/em>-nearest neighbour","doi":"10.1351\/goldbook.10131","code":"10131","status":"current","initialism":"<em>initialism<\/em>: kNN","definitions":[{"id":1,"text":"Non-parametric supervised classification method for objects based on the closest training examples in the variable space.","notes":{"1":"An object is classified by a majority vote of its \\(k\\)-nearest neighbours, with the object being assigned to the class most common.","2":"\\(k\\) is a small positive integer.","3":"When \\(k = 1\\) the method is known as \"nearest neighbour\"."},"links":[{"term":"supervised classification","url":"https:\/\/goldbook.iupac.org\/\/terms\/view\/10144"}],"sources":["PAC, 2016, 88, 407. 'Vocabulary of concepts and terms in chemometrics (IUPAC Recommendations 2016)' on page 429 (https:\/\/doi.org\/10.1515\/pac-2015-0605)"]}],"altoutputs":{"html":"https:\/\/goldbook.iupac.org\/terms\/view\/10131\/html","xml":"https:\/\/goldbook.iupac.org\/terms\/view\/10131\/xml","plain":"https:\/\/goldbook.iupac.org\/terms\/view\/10131\/plain"},"citation":"Citation: '<em>k<\/em>-nearest neighbour' in IUPAC Compendium of Chemical Terminology, 5th ed. International Union of Pure and Applied Chemistry; 2025. Online version 5.0.0, 2025. 10.1351\/goldbook.10131","license":"The IUPAC Gold Book is licensed under Creative Commons Attribution-ShareAlike CC BY-SA 4.0 International (https:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/) for individual terms.","collection":"If you are interested in licensing the Gold Book for commercial use, please contact the IUPAC Executive Director at executivedirector@iupac.org .","disclaimer":"The International Union of Pure and Applied Chemistry (IUPAC) is continuously reviewing and, where needed, updating terms in the Compendium of Chemical Terminology (the IUPAC Gold Book). Users of these terms are encouraged to include the version of a term with its use and to check regularly for updates to term definitions that you are using.","accessed":"2026-08-07T20:15:20+00:00"}}