Discussion: The beauty of kNN

Discussion: The beauty of kNN#

  1. Compare scaled and unscaled distances using training-side evidence. Explain how a semantically similar text can still be irrelevant to a retrieval question. Which assumption is most important, and how could you challenge it?

  2. Consider this failure: Scaling the entire dataset before splitting leaks evaluation information. Repeatedly selecting k on the test set turns that set into validation data. Describe evidence that would detect it and evidence that would not.

  3. A collaborator or AI assistant produces a confident answer to the chapter’s question. What independent check would you perform before accepting it? Explain what remains uncertain even if the check passes.

  4. Use classifier metrics from the preceding lessons; the next chapter formalizes the complete resampling procedure. Identify one conclusion from the previous material that remains valid and one that needs an additional condition here.