I have two lists containing some image pixel values and its "measurements". I'm trying to delete items from those if it satisfies two conditions. I tried looping over it with a for loop before realizing my dumb mistake. My code is below. What could be a method to do it?
for i in range(100):
delete_chance = np.random.random()
if abs(measurements[i]) == 0.15 and delete_chance < 0.70:
del images[i]
del measurements[i]