Question
In k-NN, what does the hyperparameter k specify?
Select an option. Your answer will be checked instantly.
Correct Answer: D. The number of neighboring training cases used for prediction
Explanation:
k determines how many nearby labeled observations contribute to a prediction. Its value controls the locality and smoothness of the model.
Leave a Reply