Error in computing accuracy of the binary classifier