code: def runInference(exp, sequences, enableFeedback=True):
    
    if enableFeedback:
      print "Feedback enabled: "
    else:
      print "Feedback disabled: "
  
    error = 0
    activityTraces = []
    responses = []
    for i,sequence in enumerate(sequences):
      (avgActiveCells, avgPredictedActiveCells, activityTrace, responsesThisSeq) = exp.infer(
        sequence, sequenceNumber=i, enableFeedback=enableFeedback)
      error += avgActiveCells
      activityTraces.append(activityTrace)
      responses.append(responsesThisSeq)
      print " "
    error /= len(sequences)
    print "Average error = ",error
    return error, activityTraces, responses
docs: Run inference on this set of sequences and compute error