docs: def accuracy(eval_data, predictions, scores='ignored', learner='ignored'):
      '''
      Return the accuracy of each prediction in `predictions`: 1 if it is equal
      to the correct output in `eval_data`, 0 otherwise.
  
      >>> data = [Instance('input', 'correct'),
      ...         Instance('input', 'correct'),
      ...         Instance('input', 'correct')]
      >>> accuracy(data, ['correct', 'wrong', 'correct'])
      [1, 0, 1]
      '''
      return [int(inst.output == pred)
              for inst, pred in zip(eval_data, predictions)]