The Basics: KNN for classification and regression
Data science or applied statistics courses typically start with linear models, but in its way, K-nearest neighbors is probably the simplest widely used model conceptually. KNN models are really just technical implementations of a common intuition, that things that share similar features tend to be, well, similar. This is hardly a deep insight, yet these practical implementations can be extremely powerful, and, crucially for someone approaching an unknown dataset, can handle non-linearities without any complicated data-engineering or model set up. As an illustrative example, let's consider the simplest case of using a KNN model as a classifier. Let's say you have data points that fall into one of three classes.
Oct-18-2019, 14:39:34 GMT
- Technology: