Course 1 Week 3 p

How to apply threshold p[i] as I’m not getting correct output. below is how I applied threshold

    p[i] = f_wb >= 0.5

Are you sure from the loop that you apply the threshold in it as there is two loops you should be careful about indentation

I applied in this way

for i in range(m):
p[i] = f_wb >= 0.5