Final answer:
The correct statements for the k-NN algorithm are: 1) We can choose the optimal value of k with the help of cross-validation. 2) Euclidean distance treats each feature as equally important.
Step-by-step explanation:
The correct answer is c) 1 and 2.
When it comes to the k-NN algorithm, the true statement is:
- We can choose the optimal value of k with the help of cross-validation. Cross-validation is a technique used to assess how well a machine-learning model is likely to perform on unseen data. It helps determine the best value of k, which represents the number of nearest neighbors considered in the classification or regression task.
- Euclidean distance treats each feature as equally important. In the k-NN algorithm, Euclidean distance is often used as a metric to measure the similarity between data points. It calculates the straight-line distance between two points in a multidimensional space, taking into account all the features.