Distance and KNN Checkpoint

Reconstruct a new trace and diagnose implementation mistakes. Select one answer per multiple-choice question.


Get every question correct to pass this checkpoint. You can review feedback, revise your answers, and submit again.

1. Which pair has cosine similarity 1 but nonzero Euclidean distance?

Select one answer.

2. A numeric feature changes units from meters to centimeters. What is guaranteed about cosine similarity?

Select one answer.

3. What does the distance exercise return for cosine similarity when one input is the zero vector?

Select one answer.

4. Sorted neighbors have labels [2,1,1,2,1]. With k=3, which integer label wins?
5. The two selected neighbors are [(0.1,2),(0.9,1)]. Under the exercise vote-tie rule, what happens?

Select one answer.

6. A learner normalizes every feature without considering its meaning. Which evaluation is most useful?

Select one answer.

Join Discord