You can get a list of indexes for the misclassified instances and use that with your dataset (eval_examples).

To get the list of indexes, you could do something like;

misclassified = [i for i in range(len(preds)) if preds[i] != labels[i]]

You could add that to the get_eval_report() function.

AI researcher, avid reader, fantasy and Sci-Fi geek, and fan of the Oxford comma. www.linkedin.com/in/t-rajapakse/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store