I am trying to find the indices of the misclassified samples using the following code. But I found that the append function does not actually append the index. Can anyone explai