compute overall accuracy for each iteration of decoding