10. List the characteristics of k-nearest neighbour algorithm.
The k-Nearest Neighbors (k-NN) algorithm is a popular supervised machine learning algorithm used for classification and regression tasks. Here are some key characteristics of the k-NN algorithm: Instance-Based Learning: k-NN is an instance-based learning algorithm. It does not explicitly learn a model during the training phase but memorizes the entire training dataset. Lazy Learning: k-NN is considered a lazy learning algorithm because it defers the processing of training data until the prediction phase. It doesn't generalize a model from the training data; instead, it stores the training instances and makes predictions based on the nearest neighbors during testing. Non-Parametric: k-NN is a non-parametric algorithm, meaning it makes no assumptions about the underlying distribution of the data. It directly uses the training dataset for predictions. Classification and Regression: k-NN can be used for both classification and regression tasks. In classification, the majority class of...