I would like to get the error rate of 2 vectors?
like
# incorrect numbers 6
error rate = ______________________ = ____
# total numbers(size) 15
here are 15 numbers, 9 are correct
x is the true answer (the reference), and y is vector with answers
I would like to compare them and get error rate:
x= [1 ,1,1, 1,1, 1,1,1,1,1, 1,-1,-1,-1,-1]
y= [-1,1,1,-1,1,-1,1,1,1,1,-1, 1,-1, 1,-1]
- Also is it corret what I am doing?
Ok I was wrong about the formula I updated it.
If you want the error rate, then you want the number of incorrect values divided by the total number of values. You can do this using the relational operator
~=and the function MEAN: