I have some data in two numpy arrays.
a = [1, 2, 3, 4, 5, 6, 7]
b = [1, 2, 3, 5, 5, 6, 7]
I say array a is my calculated result and array b are the true result values. I want to calculate the error percentage in my result.
Now I can loop through the two arrays and compare them 0 if the values match and 1 for a mismatch then add them up, divide by the total values and calculate percentage error.
Is there any possible faster and elegant method for doing this ?