I am doing classification. I have two arrays, the first is 'Actual', and the second is 'Predicted'. I want to compare these two arrays. Suppose the first array is:
Actual = [1, 1, 2, 3, 1]
this tells us that the the first, second, and the last indexes are corresponding to class 1.
The 'Predicted' array is:
Predicted = [1, 1, 1, 3, 3]
this tells us that the first and second indexes have been predicted accurately.
I want the output the tells us just those indexes that accurately predicted as 1, like this:
output = [True, True, False, False, False]
Update I want to evaluate just based on value 1. If you see, the forth predicted value is accurately predicted by 3, but I do not want that, because I want evaluate 1 value.