Target Column in KNN


Does anyone have any resources or explanations in terms of how the target column works? I’m confused between target column and labels mentioned.


I found this explanation that helped me understand features vs target more.

The features (i.e., columns) always refer to the distinct observations that describe each sample in a quantitative manner. Features are generally real-valued, but may be Boolean or discrete-valued in some cases.

The distinguishing feature of the target array is that it is usually the quantity we want to predict from the data : in statistical terms, it is the dependent variable.

So to put it simply, you’re using the features to predict the outcome of the target.