Admin code writing error in UNQ_C10?

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?

Hi Tejas_Joshi.

pred_idx == i is correct condition for if statement - there is no error.