Question: I have two lists and i need to compare the two and the order matters. I need a True positive which is when the true
I have two lists and i need to compare the two and the order matters. I need a True positive which is when the true label printed a one so did the model predictions. Then I need a False positive so when the true label printed a 1 but the model predictions printed a 0. Then I need a False negative so when the true label printed a 0 then predictions printed a 1. I was hoping to do this with a loop but I dont know how to do that keeping the order. Like the first index in true labels has to match the first index in the predictions
True labels = 1,0,0,1,0,0,1,0,0,1,1,0,0,0,0,1,0,1,0,1
predictions = 1,0,0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
