Before we introduce the KNN algorithm belong classification (Classification), namely Label discrete categorical (categorical variable), such as: color category, mobile phone brands, such as whether sick.
Simple linear regression and the regression belongs (Regression), i.e. Label continuous numeric (continuous numerical variable), such as: rates, stock prices, as rainfall.
在这里插入代码片