In the UNQ_C10 cell, is there something wrong with the if condition?
Reference:
# if the index of the nearest neighbor equals the row of i... \
if pred_idx == i:
# increment the number correct by 1.
num_correct += None
This was given for us to edit as is, but I think there’s a mistake in “pred_idx == i”.
Can anyone clarify if there’s an error or not?